diff --git a/README.md b/README.md index 7c4ad55..a7ed8f5 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,7 @@ Luban适合有以下需求的开发者: - unity + [tolua](https://github.com/topameng/tolua)、[xlua](https://github.com/Tencent/xLua) - unity + [ILRuntime](https://github.com/Ourpalm/ILRuntime) - unity + [puerts](https://github.com/Tencent/puerts) + - unity + [GameFramework](https://github.com/EllanJiang/GameFramework) - unity + [ET游戏框架](https://github.com/egametang/ET) - unreal + c++ - unreal + [unlua](https://github.com/Tencent/UnLua) @@ -90,6 +91,7 @@ Luban适合有以下需求的开发者: - unreal + [puerts](https://github.com/Tencent/puerts) - cocos2d-x + lua - cocos2d-x + js + - [skynet](https://github.com/cloudwu/skynet) - 微信小程序平台 - 其他家基于js的小程序平台 - 其他所有支持lua的引擎和平台 @@ -194,6 +196,12 @@ Luban适合有以下需求的开发者: ![兼容横表](docs/images/examples/ex_01.png) +### 轻松表达传统导表工具难以支持的复杂配置 + +
+ +![复杂表](docs/images/examples/ex_08.png) + ### 传统兼容纵表
diff --git a/docs/images/examples/ex_08.png b/docs/images/examples/ex_08.png new file mode 100644 index 0000000..abc7af5 Binary files /dev/null and b/docs/images/examples/ex_08.png differ diff --git a/src/Luban.Job.Db/Source/Defs/DefTable.cs b/src/Luban.Job.Db/Source/Defs/DefTable.cs index 6efb619..44f9201 100644 --- a/src/Luban.Job.Db/Source/Defs/DefTable.cs +++ b/src/Luban.Job.Db/Source/Defs/DefTable.cs @@ -31,7 +31,7 @@ namespace Luban.Job.Db.Defs public string InternalTableType => "_" + Name; - public string BaseTableType => $"Bright.Transaction.TxnTable<{KeyTType.Apply(DbCsDefineTypeVisitor.Ins)},{ValueTType.Apply(DbCsDefineTypeVisitor.Ins)}>"; + public string BaseTableType => $"Bright.Transaction.{(KeyTType is TLong ? "Long" : "String")}TxnTable<{ValueTType.Apply(DbCsDefineTypeVisitor.Ins)}>"; public override void Compile() {