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

100 lines
1.6 KiB

3 years ago
using System;
using System.Data;
namespace EC.Entity.Transport
{
/// <summary>
/// 供应商
/// </summary>
[TableName("aw_supplier")]
public class SupplierEntity
{
#region Attr
/// <summary>
/// 主键
/// AutoInc
/// PK
/// </summary>
[TableKey("key")]
public int Id { get; set; }
/// <summary>
/// 名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 负责人
/// </summary>
public string Manager { get; set; }
/// <summary>
/// 固定电话
/// </summary>
public string FixedPhone { get; set; }
/// <summary>
/// 移动电话
/// </summary>
public string MobilePhone { get; set; }
/// <summary>
/// 邮箱
/// </summary>
public string Email { get; set; }
/// <summary>
/// 地址
/// </summary>
public string Address { get; set; }
/// <summary>
/// 创建人
/// </summary>
public string CreateMan { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreateTime { get; set; }
/// <summary>
/// 更新人
/// </summary>
public string UpdateMan { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public DateTime UpdateTime { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; }
#endregion Attr
#region 扩展操作
/// <summary>
/// 新增调用
/// </summary>
public void Create()
{
CreateTime = DateTime.Now;
UpdateTime = CreateTime;
}
/// <summary>
/// 编辑调用
/// </summary>
public void Modify()
{
UpdateTime = DateTime.Now;
}
#endregion 扩展操作
}
}