using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.Runtime.Serialization;
using System.ComponentModel.DataAnnotations;
namespace IStation.Model
{
///
/// 角色
///
public partial class Role : System.ICloneable
{
///
///
///
public Role() { }
///
///
///
public Role(Role rhs)
{
this.ID = rhs.ID;
this.ParentIds = rhs.ParentIds?.ToList();
this.Name = rhs.Name;
this.Paras = rhs.Paras==null?null:new Dictionary(rhs.Paras);
this.SortCode = rhs.SortCode;
this.TagName = rhs.TagName;
this.UseStatus = rhs.UseStatus;
this.Description = rhs.Description;
this.CreateUserID = rhs.CreateUserID;
this.CreateTime = rhs.CreateTime;
this.UpdateTime = rhs.UpdateTime;
this.UpdateUserID = rhs.UpdateUserID;
}
///
///
///
public void Reset(Role rhs)
{
this.ID = rhs.ID;
this.ParentIds = rhs.ParentIds?.ToList();
this.Name = rhs.Name;
this.Paras = rhs.Paras == null ? null : new Dictionary(rhs.Paras);
this.SortCode = rhs.SortCode;
this.TagName = rhs.TagName;
this.UseStatus = rhs.UseStatus;
this.Description = rhs.Description;
this.CreateUserID = rhs.CreateUserID;
this.CreateTime = rhs.CreateTime;
this.UpdateTime = rhs.UpdateTime;
this.UpdateUserID = rhs.UpdateUserID;
}
///
/// 标识
///
public long ID { get; set; }
///
/// 父节点标识
///
public List ParentIds { get; set; }
///
/// 名称
///
public string Name { get; set; }
///
/// 参数
///
public Dictionary Paras { get; set; }
///
/// 标签
///
public string TagName { get; set; }
///
/// 排序码
///
public int SortCode { get; set; }
///
/// 使用状态
///
public eUseStatus UseStatus { get; set; }
///
/// 说明
///
public string Description { get; set; }
///
/// 创建用户标识
///
public long CreateUserID { get; set; }
///
/// 创建时间
///
public DateTime CreateTime { get; set; }
///
/// 更新用户标识
///
public long? UpdateUserID { get; set; }
///
/// 更新时间
///
public DateTime? UpdateTime { get; set; }
///
///
///
public Role Clone()
{
return (Role)this.MemberwiseClone();
}
object ICloneable.Clone()
{
return this.MemberwiseClone();
}
}
}