示例#1
0
 public async Task <UserRow> GetUserByIdAsync(int userId) =>
 (await DataFile.ReadFromFileAsync <UserRow>()).FirstOrDefault(a => a.UserId == userId);
示例#2
0
 public async Task <AddressRow> GetAddressByUserIdAsync(int userId) =>
 (await DataFile.ReadFromFileAsync <AddressRow>()).FirstOrDefault(a => a.UserId == userId);