Exemple #1
0
 public static async Task 异步创建对象(Donator donator)
 {
     using (var db = new DonatorContext())
     {
         db.Donators.Add(donator);
         await db.SaveChangesAsync();
     }
 }
Exemple #2
0
 public static async Task 异步创建对象(Donator donator)
 {
     using (var db = new DonatorContext())
     {
         db.Donators.Add(donator);
         await db.SaveChangesAsync();
     }
 }