27 lines
947 B
C#
27 lines
947 B
C#
using Dolphin.ExamPictureCut.Constants;
|
|
using SqlSugar;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Volo.Abp;
|
|
|
|
namespace Dolphin.ExamPictureCut.Domains.Basic;
|
|
|
|
[Table(nameof(Tenant)), Tenant(DbConsts.marking_basic)]
|
|
public class Tenant : ISoftDelete
|
|
{
|
|
[SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
|
|
public long Id { get; set; }
|
|
public string IpAddr { get; set; }
|
|
public string Database { get; set; }
|
|
public string Dbuser { get; set; }
|
|
public string Password { get; set; }
|
|
public string Port { get; set; }
|
|
public long TenantCode { get; set; }
|
|
public string TenantName { get; set; }
|
|
|
|
[NotMapped]
|
|
public string ConnectionString => $"Server={IpAddr};Port={Port};Database={Database};Uid={Dbuser};Pwd={Password};CharSet=utf8mb4;AllowLoadLocalInfile=true;AllowUserVariables=True;ConvertZeroDatetime=true;";
|
|
|
|
public bool IsEnable { get; set; }
|
|
public bool IsDeleted { get; set; }
|
|
}
|