Exemple #1
0
        public int GetCount()
        {
            MBTIEntities context = CreateContext();

            return(context.Set <T>().Count());
        }
Exemple #2
0
        public List <T> GetAll()
        {
            MBTIEntities context = CreateContext();

            return(context.Set <T>().ToList());
        }