예제 #1
0
 public void Delete(T obj)
 {
     db.Set <T>().Remove(obj);
     db.SaveChanges();
 }
예제 #2
0
        public static void Init(AvisaNetDbContext avisaNetDbContext)
        {
            avisaNetDbContext.Database.EnsureCreated();

            avisaNetDbContext.SaveChanges();
        }