Exemplo n.º 1
0
        public Repository(Models.DataBaseContext databaseContext)
        {
            if (databaseContext == null)
            {
                throw (new System.ArgumentNullException("databaseContext"));
            }

            DatabaseContext = databaseContext;
            DbSet           = DatabaseContext.Set <T>();
        }
Exemplo n.º 2
0
        public Repository(Models.DataBaseContext dataBaseContext)
        {
            if (dataBaseContext == null)
            {
                dataBaseContext = new Models.DataBaseContext();
            }

            DataBaseContext = dataBaseContext;
            DbSet           = DataBaseContext.Set <T>();
        }