Blame view

泰额版/Food Labeling Management Code/Yi.Abp.Net8/module/food-labeling/FoodLabeling.Th.Application.Contracts/Dtos/MultiTenancy/ThProvisionTenantInputVo.cs 805 Bytes
a1a0369d   李曜臣   5-25代码优化
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  using System.ComponentModel.DataAnnotations;
  
  namespace FoodLabeling.Th.Application.Contracts.Dtos.MultiTenancy;
  
  /// <summary>
  /// 创建租户并初始化独立业务库
  /// </summary>
  public class ThProvisionTenantInputVo
  {
      [Required]
      public string Name { get; set; } = string.Empty;
  
      /// <summary>
      /// 可选:自定义连接串;为空则按 FoodLabeling:TenantDatabase 模板生成
      /// </summary>
      public string? TenantConnectionString { get; set; }
  
      /// <summary>数据库类型,与 SqlSugar.DbType 枚举值一致,默认 0=MySql</summary>
      public int DbType { get; set; }
  
      /// <summary>
      /// 创建后是否立即执行 CodeFirst 建库建表(等同 PUT tenant/init/{id}
      /// </summary>
      public bool InitializeDatabase { get; set; } = true;
  }