fix 索引,判断重复问题

This commit is contained in:
2024-02-23 18:57:02 +08:00
parent d1dde626ef
commit ae8b48a782
3 changed files with 78 additions and 5 deletions

View File

@@ -12,13 +12,13 @@ public class BasicTypeEntity : SugarBaseEntity
/// <summary>
/// 类型
/// </summary>
[SugarColumn(ColumnDescription = "类型")]
[SugarColumn(ColumnDescription = "类型", UniqueGroupNameList = new[] { "idx_BasicType_type_code" })]
public string Type { get; set; }
/// <summary>
/// 编码
/// </summary>
[SugarColumn(ColumnDescription = "编码")]
[SugarColumn(ColumnDescription = "编码", UniqueGroupNameList = new[] { "idx_BasicType_type_code" })]
public string Code { get; set; }
/// <summary>