/**
* Promotion_PromotionRelation.cs
*
* 功 能: N/A
* 类 名: Promotion_PromotionRelation
*
* Ver 变更日期 负责人 变更内容
* ───────────────────────────────────
* V0.01 2013-4-2 14:28:26 N/A 初版
*
*
*
*
*
*
*/
using System;
using CY.Infrastructure.Domain;
using CY.Infrastructure.Common;
namespace CY.Model
{
///
/// 推广系统推广关系
///
[Serializable]
public partial class Promotion_PromotionRelation : IAggregateRoot
{
public Promotion_PromotionRelation()
{ }
#region Model
private Guid _popularizerid;
private Guid _pyramiderid;
private DateTime? _popularizedate;
///
/// 推广员编号
///
public Guid PopularizerId
{
set { _popularizerid = value; }
get { return _popularizerid; }
}
///
/// 受邀人编号
///
public Guid PyramiderId
{
set { _pyramiderid = value; }
get { return _pyramiderid; }
}
///
/// 推广时间
///
public DateTime? PopularizeDate
{
set { _popularizedate = value; }
get { return _popularizedate; }
}
#endregion Model
#region Visiter
///
/// 属性访问器
///
/// 属性名
/// 索引
/// 是否将指定属性设置为传入值
/// 需要赋予的值
/// 与名称对应的属性值
public object Visiter(string name, int? index = -1, bool isChange = false, object value = null)
{
object theValue = null;
if ("PopularizerId".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 1)
{
this.PopularizerId = isChange ? MyConvert.ConvertToGuid(value) : PopularizerId;
theValue = this.PopularizerId;
}
else if ("PyramiderId".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 2)
{
this.PyramiderId = isChange ? MyConvert.ConvertToGuid(value) : PyramiderId;
theValue = this.PyramiderId;
}
else if ("PopularizeDate".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 3)
{
this.PopularizeDate = isChange ? MyConvert.ConvertToDateTime(value) : PopularizeDate;
theValue = this.PopularizeDate;
}
return theValue;
}
#endregion
}
}