I have a mssql database for my website within 4 tables.
When I use this:
public static string GetAllEventsForJSON() { using (CyberDBDataContext d
This may help you.
public MyContext() : base("name=MyContext") { Database.SetInitializer(new MyContextDataInitializer()); this.Configuration.LazyLoadingEnabled = false; this.Configuration.ProxyCreationEnabled = false; }
http://code.msdn.microsoft.com/Loop-Reference-handling-in-caaffaf7