예제 #1
0
파일: EntityData.cs 프로젝트: jjw9011/SoCar
        public int GetCount()
        {
            SocarEntities context = CreateContext();

            return(context.Set <T>().Count());
        }
예제 #2
0
파일: EntityData.cs 프로젝트: jjw9011/SoCar
        public List <T> GetAll()
        {
            SocarEntities context = CreateContext();

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