添加Tnb.Vengine
This commit is contained in:
49
visualdev/Tnb.Vengine/Domain/VmodelLink.cs
Normal file
49
visualdev/Tnb.Vengine/Domain/VmodelLink.cs
Normal file
@@ -0,0 +1,49 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
// 宁波拓通e智造平台 ToTong Next Builder //
|
||||
// https://git.tuotong-tech.com/tnb/tnb.server //
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
using SqlSugar;
|
||||
using Yitter.IdGenerator;
|
||||
|
||||
namespace Tnb.Vengine.Domain;
|
||||
|
||||
/// <summary>
|
||||
/// 数据库连接
|
||||
/// </summary>
|
||||
[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(ColumnName = "db_type", IsNullable = false)]
|
||||
public eDbType dbType { 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 };
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user