using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IStation.Entity
{
///
/// 报修文件
///
[SplitTable(SplitType.Year)]//按年分表 (自带分表支持 年、季、月、周、日)
[SugarTable("inspect_record_detail{year}{month}{day}")]//3个变量必须要有,这么设计为了兼容开始按年,后面改成按月、按日
public class InspectRecordDetail : BaseEntity, ICloneable
{
///
///
///
public InspectRecordDetail() { }
///
///
///
///
public InspectRecordDetail(InspectRecordDetail rhs)
{
this.ID = rhs.ID;
this.RecordID = rhs.RecordID;
this.ContentID = rhs.ContentID;
this.Value = rhs.Value;
this.Status = rhs.Status;
this.Time = rhs.Time;
this.Handle = rhs.Handle;
}
#region Model
///
/// RecordID
///
public long RecordID
{
get { return _recordid; }
set { _recordid = value; }
}
private long _recordid;
///
/// ContentID
///
public long ContentID
{
get { return _contentid; }
set { _contentid = value; }
}
private long _contentid;
///
/// Value
///
public string Value
{
get { return _value; }
set { _value = value; }
}
private string _value;
///
/// Status
///
public int Status
{
get { return _status; }
set { _status = value; }
}
private int _status;
///
/// Time
///
[SplitField] //分表字段 在插入的时候会根据这个字段插入哪个表,在更新删除的时候用这个字段找出相关表
public DateTime Time
{
get { return _time; }
set { _time = value; }
}
private DateTime _time;
///
/// Status
///
public int Handle
{
get { return _handle; }
set { _handle = value; }
}
private int _handle=0;
#endregion Model
#region Clone
///
///
///
///
public InspectRecordDetail Clone()
{
return new InspectRecordDetail(this);
}
///
///
///
///
object ICloneable.Clone()
{
return this.Clone();
}
#endregion Clone
}
}