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

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

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