示例#1
0
 public async Task AddAsync(UserDto model)
 {
     await dataProvider.AddAsync(new User
     {
         ActiveStatu = (Mini.Data.Entity.ActiveStatu)model.ActiveStatu
     });
 }
示例#2
0
 public async Task AddAsync(BaseDataDto baseData)
 {
     await dataProvider.AddAsync(new BaseData
     {
         ID         = baseData.ID,
         CreateTime = baseData.CreateTime,
         Icon       = baseData.Icon,
         IsDefault  = baseData.IsDefault,
         Key        = baseData.Key,
         Type       = baseData.Type,
         UpdateTime = baseData.UpdateTime,
         Value      = baseData.Value
     });
 }
 public async Task AddAsync(T entity)
 {
     await _dataProvider.AddAsync(entity);
 }
示例#4
0
 public override void SaveMessage(LogRecord record)
 {
     YetaWFManager.Syncify(async() => {  // Logging is advertised as Sync - use NLog instead
         await DataProvider.AddAsync(record);
     });
 }