102 lines
2.5 KiB
C#
102 lines
2.5 KiB
C#
|
using NPlatform.Filters;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.ComponentModel.DataAnnotations;
|
|||
|
using System.ComponentModel.DataAnnotations.Schema;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace BZPT.Domains.Entity.Sys
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// 租户
|
|||
|
/// </summary>
|
|||
|
[Serializable]
|
|||
|
[Table(name: "Sys_Tenant")]
|
|||
|
public class Tenant : EntityBase<string>
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// 租户名称
|
|||
|
/// </summary>
|
|||
|
|
|||
|
[Display(Name = "租户名称")]
|
|||
|
[StringLength(200)]
|
|||
|
[Required]
|
|||
|
public string TenantName { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 租户编码
|
|||
|
/// </summary>
|
|||
|
[Display(Name = "租户编码")]
|
|||
|
[StringLength(200)]
|
|||
|
public string TenantCode { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 数据库连接
|
|||
|
/// </summary>
|
|||
|
[Display(Name = "数据库连接")]
|
|||
|
[StringLength(600)]
|
|||
|
[Required]
|
|||
|
public string ConnectionString { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// DbType
|
|||
|
/// </summary>
|
|||
|
[Display(Name = "DbType")]
|
|||
|
[StringLength(200)]
|
|||
|
public string DbType { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 缓存连接地址
|
|||
|
/// </summary>
|
|||
|
[Display(Name = "缓存连接地址")]
|
|||
|
[StringLength(600)]
|
|||
|
public string CacheConnection { get; set; }
|
|||
|
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 附件存储路径
|
|||
|
/// </summary>
|
|||
|
[Display(Name = "附件存储路径")]
|
|||
|
[StringLength(200)]
|
|||
|
public string FilePath { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 扩展字段1
|
|||
|
/// </summary>
|
|||
|
[Display(Name = "扩展字段1")]
|
|||
|
[StringLength(200)]
|
|||
|
public string Col1 { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 扩展字段2
|
|||
|
/// </summary>
|
|||
|
[Display(Name = "扩展字段2")]
|
|||
|
[StringLength(200)]
|
|||
|
public string Col2 { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 扩展字段3
|
|||
|
/// </summary>
|
|||
|
[Display(Name = "扩展字段3")]
|
|||
|
[StringLength(500)]
|
|||
|
public string Col3 { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 扩展字段4
|
|||
|
/// </summary>
|
|||
|
[Display(Name = "扩展字段4")]
|
|||
|
[StringLength(500)]
|
|||
|
public string Col4 { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 扩展字段5
|
|||
|
/// </summary>
|
|||
|
[Display(Name = "扩展字段5")]
|
|||
|
[StringLength(1000)]
|
|||
|
public string Col5 { get; set; }
|
|||
|
|
|||
|
}
|
|||
|
}
|