示例#1
0
 public async void EditAddress(Address address)
 {
     Context.Addresses.Attach(address);
     Context.Entry(address).State = EntityState.Modified;
     await Context.SaveChangesAsync();
 }
示例#2
0
 public async void CreateAddress(Address address)
 {
     Context.Addresses.Add(address);
     await Context.SaveChangesAsync();
 }