public Repository(Models.DataBaseContext databaseContext) { if (databaseContext == null) { throw (new System.ArgumentNullException("databaseContext")); } DatabaseContext = databaseContext; DbSet = DatabaseContext.Set <T>(); }
public Repository(Models.DataBaseContext dataBaseContext) { if (dataBaseContext == null) { dataBaseContext = new Models.DataBaseContext(); } DataBaseContext = dataBaseContext; DbSet = DataBaseContext.Set <T>(); }