using System;
|
using System.Runtime.Serialization;
|
namespace CY_DocumentSynchroWCFService
|
{
|
/// <summary>
|
///Document_AptitudeIMG
|
/// </summary>
|
[DataContract]
|
public partial class Document_AptitudeIMG : IAggregateRoot
|
{
|
public Document_AptitudeIMG()
|
{
|
}
|
#region Model
|
private int? _id;
|
private int? _aptitudeid;
|
private string _filepath;
|
private string _filename;
|
private string _fileversionno;
|
private int? _filesize;
|
|
/// <summary>
|
/// ID
|
/// </summary>
|
[DataMember]
|
public int? ID
|
{
|
get
|
{
|
return _id;
|
}
|
set
|
{
|
_id = value;
|
}
|
}
|
/// <summary>
|
/// AptitudeId
|
/// </summary>
|
[DataMember]
|
public int? AptitudeId
|
{
|
get
|
{
|
return _aptitudeid;
|
}
|
set
|
{
|
_aptitudeid = value;
|
}
|
}
|
/// <summary>
|
/// FilePath
|
/// </summary>
|
[DataMember]
|
public string FilePath
|
{
|
get
|
{
|
return _filepath;
|
}
|
set
|
{
|
_filepath = value;
|
}
|
}
|
/// <summary>
|
/// FileName
|
/// </summary>
|
[DataMember]
|
public string FileName
|
{
|
get
|
{
|
return _filename;
|
}
|
set
|
{
|
_filename = value;
|
}
|
}
|
/// <summary>
|
/// FileVersionNo
|
/// </summary>
|
[DataMember]
|
public string FileVersionNo
|
{
|
get
|
{
|
return _fileversionno;
|
}
|
set
|
{
|
_fileversionno = value;
|
}
|
}
|
/// <summary>
|
/// FileSize
|
/// </summary>
|
[DataMember]
|
public int? FileSize
|
{
|
get
|
{
|
return _filesize;
|
}
|
set
|
{
|
_filesize = value;
|
}
|
}
|
#endregion Model
|
|
#region Visiter
|
/// <summary>
|
/// 属性访问器
|
/// </summary>
|
/// <param name="name">属性名</param>
|
/// <param name="index">索引</param>
|
/// <param name="isChange">是否将指定属性设置为传入值</param>
|
/// <param name="value">需要赋予的值</param>
|
/// <returns>与名称对应的属性值</returns>
|
public object Visiter(string name, int? index = -1, bool isChange = false, object value = null)
|
{
|
object theValue = null;
|
if ("ID".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 1)
|
{
|
this.ID = isChange ? MyConvert.ConvertToInt(value) : ID;
|
theValue = this.ID;
|
}
|
else if ("AptitudeId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
|
{
|
this.AptitudeId = isChange ? MyConvert.ConvertToInt(value) : AptitudeId;
|
theValue = this.AptitudeId;
|
}
|
else if ("FilePath".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
|
{
|
this.FilePath = isChange ? MyConvert.ConvertToString(value) : FilePath;
|
theValue = this.FilePath;
|
}
|
else if ("FileName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
|
{
|
this.FileName = isChange ? MyConvert.ConvertToString(value) : FileName;
|
theValue = this.FileName;
|
}
|
else if ("FileVersionNo".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
this.FileVersionNo = isChange ? MyConvert.ConvertToString(value) : FileVersionNo;
|
theValue = this.FileVersionNo;
|
}
|
else if ("FileSize".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
|
{
|
this.FileSize = isChange ? MyConvert.ConvertToInt(value) : FileSize;
|
theValue = this.FileSize;
|
}
|
return theValue;
|
}
|
#endregion Visiter
|
}
|
}
|