public static tInstationInfo ToEntity(ViewtInstationInfo model) { tInstationInfo item = new tInstationInfo(); item.ID = model.ID; item.Uid = model.Uid; item.CreateTime = model.CreateTime; item.CreateUser = model.CreateUser; item.iType = model.iType; item.sContent = model.sContent; item.ifDel = model.ifDel; item.loginType = model.loginType; return(item); }
public static ViewtInstationInfo ToViewModel(tInstationInfo model) { if (model == null) { return(null); } ViewtInstationInfo item = new ViewtInstationInfo(); item.ID = model.ID; item.Uid = model.Uid; item.CreateTime = model.CreateTime; item.CreateUser = model.CreateUser; item.iType = model.iType; item.sContent = model.sContent; item.ifDel = model.ifDel; item.loginType = model.loginType; return(item); }