under the edmx.context.cs add the below two lines inside the edmx constructor
this.Configuration.LazyLoadingEnabled = false;
this.Configuration.ProxyCreationEnabled = false;
public YourDBEntities(): base("name=YourDBEntities")
{
this.Configuration.LazyLoadingEnabled
= false;
this.Configuration.ProxyCreationEnabled
= false;
}
Thanks men for the concrete solution. see you.
ReplyDelete