屠宰场客户端
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.

50 lines
1.1 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Forks.EnterpriseServices.DataForm;
using Forks.EnterpriseServices.DomainObjects2;
namespace SegmentationInStore.Rpc.Dto
{
[Serializable]
[MapToTable("SegmentationInStoreExceptionRecord")]
[DFClass]
[KeyField("ID", KeyGenType.identity)]
public class SegmentationInStoreExceptionRecord
{
public SegmentationInStoreExceptionRecord(string barcode, string error)
{
BarCode = barcode;
ExceptionStr = error;
}
public long ID { get; set; }
protected DateTime mCreateTime = DateTime.Now;
/// <summary>
/// 每条记录都要记录创建时间
/// </summary>
public DateTime CreateTime
{
get { return mCreateTime; }
set { mCreateTime = value; }
}
[DbColumn(Length = 1000)]
public string BarCode { get; set; }
[DbColumn(Length = 4000)]
public string ExceptionStr { get; set; }
public override string ToString()
{
return BarCode + " " + ExceptionStr;
}
}
}