///////////////////////////////////////////////////////////////////////////////// // 宁波拓通e智造平台 ToTong Next Builder // // https://git.tuotong-tech.com/tnb/tnb.server // ///////////////////////////////////////////////////////////////////////////////// using SqlSugar; using Tnb.Core; using Yitter.IdGenerator; namespace Tnb.Vengine.Domain; /// /// 数据库连接 /// [SugarTable("sys_vmodel_link")] public partial class VmodelLink : Entity { /// /// 主键标识 /// [SugarColumn(IsPrimaryKey = true)] public string id { get; set; } = YitIdHelper.NextId().ToString(); /// /// 数据库连接 /// [SugarColumn(ColumnName = "db_code", IsNullable = false, Length = DbConsts.LengthS)] public string dbCode { get; set; } = "PostgreSQL"; /// /// 数据库类型 /// [SugarColumn(ColumnName = "db_type", IsNullable = false, Length = DbConsts.LengthS)] public string dbType { get; set; } = "PostgreSQL"; /// /// 连接串 /// [SugarColumn(ColumnName = "db_connection", IsNullable = false, Length = DbConsts.LengthXL)] public string dbConnection { get; set; } = ""; /// /// 主键 /// public override object[] GetKeys() { return new object[] { id }; } }