public class EntityDataProvider : DbContext, IDataProviderEntity { public EntityDataProvider(string connectionStringName, bool enableLazyLoading = true) : base(connectionStringName) { Configuration.LazyLoadingEnabled = enableLazyLoading; } }
public class Account { ... private ICollection<CodeSegment> _codeSegments; public virtual ICollection<CodeSegment> CodeSegments { get { return _codeSegments ?? (_codeSegments = new Collection<CodeSegment>()); } protected set { _codeSegments = value; } } }
Configuration.LazyLoadingEnabled = true; public ICollection<CodeSegment> CodeSegments (removed virtual)
Configuration.LazyLoadingEnabled = false; public virtual ICollection<CodeSegment> CodeSegments (added virtual)
Configuration.LazyLoadingEnabled = false; public ICollection<CodeSegment> CodeSegments (removed virtual)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)