/// <summary> /// 设置DTO状态 /// </summary> /// <param name="state"></param> public void SetState(DTOState state) { _State = state; if (_State == DTOState.UnChange || _State == DTOState.New) { OriginalValues.Clear(); } }
public static State ConvertType(DTOState o) { return(new State() { DisplayOrder = o.DisplayOrder, ID = o.ID, Name = o.Name }); }