Exemplo n.º 1
0
        /// <summary>
        /// 设置DTO状态
        /// </summary>
        /// <param name="state"></param>
        public void SetState(DTOState state)
        {
            _State = state;

            if (_State == DTOState.UnChange || _State == DTOState.New)
            {
                OriginalValues.Clear();
            }
        }
Exemplo n.º 2
0
 public static State ConvertType(DTOState o)
 {
     return(new State()
     {
         DisplayOrder = o.DisplayOrder,
         ID = o.ID,
         Name = o.Name
     });
 }