You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
2.5 KiB
C#

using System.ComponentModel;
using SqlSugar;
namespace DS.WMS.Core.TaskInteraction.Entity
{
/// <summary>
/// 业务数据源提供程序配置
/// </summary>
[SugarTable("business_data_provider", "业务数据源提供程序配置")]
public class BusinessDataProvider
{
/// <summary>
/// ID
/// </summary>
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
/// <summary>
/// 数据源程序类型名
/// </summary>
[SugarColumn(ColumnDescription = "数据源程序类型名", Length = 100, IsNullable = true)]
public string TypeName { get; set; } = string.Empty;
/// <summary>
/// 数据源名称
/// </summary>
[SugarColumn(ColumnDescription = "数据源名称", Length = 100, IsNullable = false)]
public string Name { get; set; } = string.Empty;
/// <summary>
/// 数据源描述
/// </summary>
[SugarColumn(ColumnDescription = "数据源描述", Length = 300, IsNullable = true)]
public string? Description { get; set; }
/// <summary>
/// 数据源内容
/// </summary>
[SugarColumn(ColumnDescription = "数据源内容", IsNullable = true)]
public string? Content { get; set; }
/// <summary>
/// 数据源类型
/// </summary>
[SugarColumn(ColumnDescription = "数据源类型")]
public DataProviderType Type { get; set; }
/// <summary>
/// 创建人
/// </summary>
[SugarColumn(ColumnDescription = "创建人", IsNullable = false)]
public long CreateBy { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[SugarColumn(ColumnDescription = "创建时间", IsNullable = false)]
public DateTime CreateTime { get; set; }
}
/// <summary>
/// 数据源类型
/// </summary>
public enum DataProviderType
{
/// <summary>
/// 自定义
/// </summary>
[Description("自定义")]
Custom = 0,
/// <summary>
/// 固定
/// </summary>
[Description("固定")]
Fixed = 1,
/// <summary>
/// 数据库
/// </summary>
[Description("数据库")]
Database = 2,
/// <summary>
/// 网络
/// </summary>
[Description("网络")]
Network = 3
}
}