1

Closed

No public members after creating data context assembly

description

After using SPMetal with the xml parameter file, and having the access modifier to "public", when using the driver and selecting the created assembly, when trying to select a data context type, it displays a message saying "There are no public types in that assembly".
However checking the generated code by spmetal, all classes are public and i can see them as public in the object browser.

file attachments

Closed May 20, 2011 at 10:26 AM by theiwaz
This issue seems to be cleared

comments

theiwaz wrote Mar 15, 2011 at 9:08 AM

It is necessary that the Data Context Class which s derived from Microsoft.SharePoint.Linq.DataContext is public. Please refer to the attached screenshot.

wrote Mar 15, 2011 at 9:08 AM

wrote May 20, 2011 at 10:26 AM

wrote Feb 14, 2013 at 12:01 AM

wrote May 16, 2013 at 5:32 AM