示例#1
0
 public async Task AddAsync(User user)
 {
     await DbContainer.CreateItemAsync <User>(user, new PartitionKey(user.Id.ToString()));
 }
示例#2
0
 public async Task AddAsync(Contact Contact)
 {
     await DbContainer.CreateItemAsync <Contact>(Contact, new PartitionKey(Contact.Id.ToString()));
 }