Beispiel #1
0
 private async Task InitializeColumnNameSettingAsync(CompanySource source, LoginUser loginUser, CancellationToken token)
 {
     foreach (var tableName in new string[] { nameof(Billing), nameof(Receipt) })
     {
         var noteCount = (tableName == nameof(Billing) ? 8 : 4);
         for (var i = 1; i <= noteCount; i++)
         {
             var columnName = new ColumnNameSetting
             {
                 CompanyId    = source.Company.Id,
                 TableName    = tableName,
                 ColumnName   = $"Note{i}",
                 OriginalName = $"備考{(i == 1 ? "" : i.ToString())}",
                 CreateBy     = loginUser.Id,
                 UpdateBy     = loginUser.Id,
             };
             await columnNameSettingQueryProcessor.SaveAsync(columnName, token);
         }
     }
 }
 public async Task <ColumnNameSetting> SaveAsync(ColumnNameSetting ColumnName, CancellationToken token = default(CancellationToken))
 => await addColumnNameSettingQueryProcessor.SaveAsync(ColumnName, token);