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