public static tUserLoginInfo ToEntity(ViewtUserLoginInfo model) { tUserLoginInfo item = new tUserLoginInfo(); item.ID = model.ID; item.Uid = model.Uid; item.sloginInfo = model.sloginInfo; item.LoginTime = model.LoginTime; item.QuitTime = model.QuitTime; item.NickName = model.NickName; return(item); }
public static ViewtUserLoginInfo ToViewModel(tUserLoginInfo model) { if (model == null) { return(null); } ViewtUserLoginInfo item = new ViewtUserLoginInfo(); item.ID = model.ID; item.Uid = model.Uid; item.sloginInfo = model.sloginInfo; item.LoginTime = model.LoginTime; item.QuitTime = model.QuitTime; item.NickName = model.NickName; return(item); }