diff --git a/Src/Asp.NetCore2/SqlSeverTest/UnitTest/Main.cs b/Src/Asp.NetCore2/SqlSeverTest/UnitTest/Main.cs index 9068b63a0..e07c15bbd 100644 --- a/Src/Asp.NetCore2/SqlSeverTest/UnitTest/Main.cs +++ b/Src/Asp.NetCore2/SqlSeverTest/UnitTest/Main.cs @@ -31,6 +31,7 @@ namespace OrmTest } public static void Init() { + Unitrasdfa.Init(); Unitadfasdfa.Init(); UpdateNavOneToOne.Init(); Unitasf1.Init(); diff --git a/Src/Asp.NetCore2/SqlSeverTest/UnitTest/Unitrasdfa.cs b/Src/Asp.NetCore2/SqlSeverTest/UnitTest/Unitrasdfa.cs new file mode 100644 index 000000000..5141f032e --- /dev/null +++ b/Src/Asp.NetCore2/SqlSeverTest/UnitTest/Unitrasdfa.cs @@ -0,0 +1,108 @@ +using OrmTest; +using SqlSugar; +using System; +using System.Collections.Generic; +using System.Text; + +namespace OrmTest +{ + internal class Unitrasdfa + { + public static void Init() + { + var db = NewUnitTest.Db; + db.CurrentConnectionConfig.ConfigId = "a"; + var sql= db.QueryableWithAttr() + .InnerJoin((t, tj) => t.Id == tj.tempId) + .ToSqlString(); + + + } + } + [SugarTable("FLOW_TEMPLATE")] + [Tenant("a")] + public class FlowTemplateEntity + { + public object tempId { get; set; } + + /// + /// 流程编码. + /// + [SugarColumn(ColumnName = "F_ENCODE")] + public string EnCode { get; set; } + + /// + /// 流程名称. + /// + [SugarColumn(ColumnName = "F_FULLNAME")] + public string FullName { get; set; } + + /// + /// 流程类型(0:发起流程,1:功能流程). + /// + [SugarColumn(ColumnName = "F_TYPE")] + public int? Type { get; set; } + + /// + /// 流程分类. + /// + [SugarColumn(ColumnName = "F_CATEGORY")] + public string Category { get; set; } + + /// + /// 图标. + /// + [SugarColumn(ColumnName = "F_ICON")] + public string Icon { get; set; } + + /// + /// 图标背景色. + /// + [SugarColumn(ColumnName = "F_ICONBACKGROUND")] + public string IconBackground { get; set; } + + /// + /// 描述. + /// + [SugarColumn(ColumnName = "F_DESCRIPTION")] + public string Description { get; set; } + + /// + /// 排序码. + /// + [SugarColumn(ColumnName = "F_SORTCODE")] + public long? SortCode { get; set; } + public object Id { get; set; } + } + + + + [SugarTable("FLOW_TEMPLATEJSON")] + [Tenant("a")] + public class FlowTemplateJsonEntity + { + /// + /// 流程编码. + /// + [SugarColumn(ColumnName = "F_TEMPLATEID")] + public string TemplateId { get; set; } + + /// + /// 可见类型. + /// + [SugarColumn(ColumnName = "F_VISIBLETYPE")] + public int? VisibleType { get; set; } + + /// + /// 流程版本. + /// + [SugarColumn(ColumnName = "F_VERSION")] + public string Version { get; set; } + + /// + /// 流程模板. + /// + [SugarColumn(ColumnName = "F_FLOWTEMPLATEJSON")] + public string FlowTemplateJson { get; set; } + } +}