public int GetCount() { PCBangEntities context = CreateContext(); return(context.Set <T>().Count()); }
public List <T> GetAll() { PCBangEntities context = CreateContext(); return(context.Set <T>().ToList()); }