public PlaylistRepository(MyTunesEntities entities) { this.entities = entities; this.entities.Configuration.LazyLoadingEnabled = true; this.entities.Configuration.ProxyCreationEnabled = false; this.dbSet = entities.Set <Playlist>(); }
public GenericRepository(MyTunesEntities entities) { this.entities = entities; this.dbSet = entities.Set <T>(); }
public UnitOfWork() { _entities = new MyTunesEntities(); _entities.Configuration.LazyLoadingEnabled = false; //_entities.Configuration.ProxyCreationEnabled = false; }