【调整】调整 db cs生成。 Table只支持key为string和long类型

main
walon 2021-08-19 16:12:32 +08:00
parent 5482b0a5de
commit 92493005a7
3 changed files with 9 additions and 1 deletions

View File

@ -83,6 +83,7 @@ Luban适合有以下需求的开发者
- unity + [tolua](https://github.com/topameng/tolua)、[xlua](https://github.com/Tencent/xLua) - unity + [tolua](https://github.com/topameng/tolua)、[xlua](https://github.com/Tencent/xLua)
- unity + [ILRuntime](https://github.com/Ourpalm/ILRuntime) - unity + [ILRuntime](https://github.com/Ourpalm/ILRuntime)
- unity + [puerts](https://github.com/Tencent/puerts) - unity + [puerts](https://github.com/Tencent/puerts)
- unity + [GameFramework](https://github.com/EllanJiang/GameFramework)
- unity + [ET游戏框架](https://github.com/egametang/ET) - unity + [ET游戏框架](https://github.com/egametang/ET)
- unreal + c++ - unreal + c++
- unreal + [unlua](https://github.com/Tencent/UnLua) - unreal + [unlua](https://github.com/Tencent/UnLua)
@ -90,6 +91,7 @@ Luban适合有以下需求的开发者
- unreal + [puerts](https://github.com/Tencent/puerts) - unreal + [puerts](https://github.com/Tencent/puerts)
- cocos2d-x + lua - cocos2d-x + lua
- cocos2d-x + js - cocos2d-x + js
- [skynet](https://github.com/cloudwu/skynet)
- 微信小程序平台 - 微信小程序平台
- 其他家基于js的小程序平台 - 其他家基于js的小程序平台
- 其他所有支持lua的引擎和平台 - 其他所有支持lua的引擎和平台
@ -194,6 +196,12 @@ Luban适合有以下需求的开发者
![兼容横表](docs/images/examples/ex_01.png) ![兼容横表](docs/images/examples/ex_01.png)
### 轻松表达传统导表工具难以支持的复杂配置
<br/>
![复杂表](docs/images/examples/ex_08.png)
### 传统兼容纵表 ### 传统兼容纵表
<br/> <br/>

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

View File

@ -31,7 +31,7 @@ namespace Luban.Job.Db.Defs
public string InternalTableType => "_" + Name; 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() public override void Compile()
{ {