Ejemplo n.º 1
0
 public Repository(string pConnectionString)
 {
     //"Data Source=SFECLT\\SQLEXPRESS;Initial Catalog=SecondBookRental;Integrated Security=True"
     context = new BookRentalEntities();
     DbSet   = context.Set <T>();
     context.Database.Connection.ConnectionString = pConnectionString;
 }
Ejemplo n.º 2
0
 public Repository()
 {
     context = new BookRentalEntities();
     DbSet   = context.Set <T>();
 }