//, , , , #region - 方法 - public static tZanModels ToEntity(ViewtZanModels model) { tZanModels item = new tZanModels(); item.ID = model.ID; item.iFromUid = model.iFromUid; item.iToUid = model.iToUid; item.CreateDate = model.CreateDate; item.iType = model.iType; item.iToType = model.iToType; item.ToUid = model.ToUid; item.loginType = model.loginType; return(item); }
public static ViewtZanModels ToViewModel(tZanModels model) { if (model == null) { return(null); } ViewtZanModels item = new ViewtZanModels(); item.ID = model.ID; item.iFromUid = model.iFromUid; item.iToUid = model.iToUid; item.CreateDate = model.CreateDate; item.iType = model.iType; item.iToType = model.iToType; item.ToUid = model.ToUid; item.loginType = model.loginType; return(item); }