예제 #1
0
        public virtual void Delete(object id)
        {
            for (int i = 0; i < 8; i++)
            {
                Console.WriteLine(typeof(T));
            }
            set = context.Set <T>();
            T entityToDelete = set.Find(id);

            Delete(entityToDelete);
        }
예제 #2
0
 public GenericRepo(PrisonDbContext context)
 {
     this.context = context;
     set          = context.Set <T>();
 }