Esempio n. 1
0
        public Crud()
        {
            var type = typeof(System.Data.Entity.SqlServer.SqlProviderServices);

            database = new RestaurantDBEntities3();
            ents     = database.Set <T>();
        }
        public RestaurantCrud()
        {
            var type = typeof(System.Data.Entity.SqlServer.SqlProviderServices);

            database       = new RestaurantDBEntities3();
            restaurantList = database.Restaurants.ToList();
            reviewList     = database.Reviews.ToList();
        }