Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

SPMetal generate code: EntityList not EntityList in data context class?

$
0
0

I create and deploy custom list by visual studio 2010. I have 3 file: Instance, element and schema. Then I used SPMetal to generate code.

[Microsoft.SharePoint.Linq.ListAttribute(Name="Currency")]
public Microsoft.SharePoint.Linq.EntityList<Item> Currency
{
 get {
 return this.GetList<Item>("Currency");
}
}

If I create custom list(Currency) by sharepoint, SPMetal will generate code below. What should I edit in my xml file(instance, element, schema) so that SPMetal gen to:

[Microsoft.SharePoint.Linq.ListAttribute(Name="Currency")]
public Microsoft.SharePoint.Linq.EntityList<Currency> Currency
{
 get {
 return this.GetList<Currency>("Currency");
}
}





Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>