Click here to Skip to main content
15,885,904 members
Articles / Programming Languages / C#

Using SPMetal

Rate me:
Please Sign up or sign in to vote.
5.00/5 (5 votes)
15 Mar 2011CPOL11 min read 57.1K   435   11  
Using SPMetal to generate Linq to SharePoint classes
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Field ID="{cbad7981-71e3-4c86-a579-cc7746dcc4a7}" Name="FirstName" DisplayName="First Name" Type="Text" Group="CodeProject" />
  <Field ID="{9d387fe6-8fb6-4437-a32e-a89e2d7d36ec}" Name="LastName" DisplayName="Last Name" Type="Text" Group="CodeProject" />
  <Field ID="{77850ecf-8fce-4a97-8183-d85638145609}" Name="ContactTitle" DisplayName="Title" Type="Text" Group="CodeProject" />
  <Field ID="{83abdcd4-9591-4dde-a1be-e141d73a87d1}" Name="ContactType" DisplayName="Type of contact" Type="Choice" Group="CodeProject">
    <CHOICES>
      <CHOICE>Sales Rep</CHOICE>
      <CHOICE>VP</CHOICE>
      <CHOICE>Pointy Haired Boss</CHOICE>
    </CHOICES>
  </Field>
  
  <Field ID="{e05520db-acd3-49aa-89be-17b86b98aa7b}" Name="CompanyName" DisplayName="Company" Type="Text" Group="CodeProject" />
</Elements>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Comments and Discussions