This project is read-only.
  1. Download the latest SPOrm.
  2. Generate your partial classes by executing: SpormRunner.exe <SharePointUrl> [namespace] [outputDir]. For instance SpormRunner.exe http://localhost/MySite MyCompany.MyProject.Lib.Entity ..\MyProject\Entity
  3. You should now have a "MyDataContext" class, a list class called "NameOfList", and a content type called "NameOfListContentType". (substituting your names of course).
  4. In your feature code
  using(MyDataContext ctx = new MyDataContext(Web)) {
    var item = ctx.NameOfList.First(i => i.ID == 1);
    // ... do something ...

Last edited Sep 9, 2009 at 7:55 PM by lprichar, version 3


No comments yet.