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