Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I don't yet have a development VM with SharePoint installed (I have been using SPServices and JavaScript up to this point), so I cannot quickly answer this for myself...

I am interested in investigating SPMetal, but I can't find anything that will definitively tell me if I can generate Linq to SharePoint classes and then use them in a non-SharePoint project.

For example, if I have a Win Form app that I now want to pull some data from a SharePoint list. Can I use SPMetal or do I need to just use web services and CAML?

Thanks.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

You cannot use SPMetal without SharePoint object model. If you look at the SPMetal sources you can find that it works with SPContext. Instead of this you can use REST API of SharePoint o client SharePoint Object Model (CSOM).

share|improve this answer
    
Makes sense. Thanks, Alexander. –  Kevin Jan 28 '13 at 15:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.