Example #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;
 }
Example #2
0
 public Repository()
 {
     context = new BookRentalEntities();
     DbSet   = context.Set <T>();
 }