示例#1
0
 public static System.Threading.Tasks.Task <Guild> OpenWriteGuildSettingsAsync(
     Services.IDataPersistenceContext <Guild> context, ulong guildId)
 => context.FindOneOrNewAsync(g => g.Id == guildId, () => new Guild()
 {
     Id = guildId
 });
示例#2
0
 public static System.Threading.Tasks.Task <User> OpenWriteGuildSettingsAsync(
     Services.IDataPersistenceContext <User> context, ulong userId)
 => context.FindOneOrNewAsync(u => u.Id == userId, () => new User()
 {
     Id = userId
 });