vengine初步实现增删改查

This commit is contained in:
2023-09-06 18:50:20 +08:00
parent b52e48ce9a
commit 64e1a60780
41 changed files with 2820 additions and 2752 deletions

View File

@@ -4,6 +4,7 @@
/////////////////////////////////////////////////////////////////////////////////
using SqlSugar;
using Tnb.Core;
using Yitter.IdGenerator;
namespace Tnb.Vengine.Domain;
@@ -14,36 +15,36 @@ namespace Tnb.Vengine.Domain;
[SugarTable("sys_vmodel_link")]
public partial class VmodelLink : Entity
{
/// <summary>
/// 主键标识
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public string id { get; set; } = YitIdHelper.NextId().ToString();
/// <summary>
/// 数据库连接
/// </summary>
[SugarColumn(ColumnName = "db_code", Length = DbConsts.LengthS)]
public string? dbCode { get; set; }
/// <summary>
/// 主键标识
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public string id { get; set; } = YitIdHelper.NextId().ToString();
/// <summary>
/// 数据库连接
/// </summary>
[SugarColumn(ColumnName = "db_code", IsNullable = false, Length = DbConsts.LengthS)]
public string dbCode { get; set; } = "PostgreSQL";
/// <summary>
/// 数据库类型
/// </summary>
[SugarColumn(ColumnName = "db_type", IsNullable = false)]
public eDbType dbType { get; set; }
/// <summary>
/// 数据库类型
/// </summary>
[SugarColumn(ColumnName = "db_type", IsNullable = false, Length = DbConsts.LengthS)]
public string dbType { get; set; } = "PostgreSQL";
/// <summary>
/// 连接串
/// </summary>
[SugarColumn(ColumnName = "db_connection", IsNullable = false, Length = DbConsts.LengthXL)]
public string dbConnection { get; set; } = "";
/// <summary>
/// 连接串
/// </summary>
[SugarColumn(ColumnName = "db_connection", IsNullable = false, Length = DbConsts.LengthXL)]
public string dbConnection { get; set; } = "";
/// <summary>
/// 主键
/// </summary>
public override object[] GetKeys()
{
return new object[] { id };
}
/// <summary>
/// 主键
/// </summary>
public override object[] GetKeys()
{
return new object[] { id };
}
}