release: simcu::orm 1.2.1 — README 清理(去除 EF 对照、补充 @Index 索引注解)、迁移生成索引说明、包描述与版本更新

This commit is contained in:
2026-08-23 06:45:04 +08:00
parent 9d7b353e2f
commit 270a01fd49
10 changed files with 175 additions and 37 deletions
+10
View File
@@ -91,3 +91,13 @@ public class MaxLength {
this.maxLength = maxLength
}
}
/**
* 标记该字段所在列建索引(对齐 .NET IndexAttribute),
* 迁移 CLI(add) 会按模型自动生成 CREATE INDEX;索引名默认为 ix_<表名>_<列名>。
* 用法:@Index public var _sellerAccount: String = ""
*/
@Annotation[target: [MemberVariable]]
public class Index {
public const init() {}
}