public M_UserPurview GetModelFromReader(DbDataReader rdr) { M_UserPurview model = new M_UserPurview(); model.ID = Convert.ToInt32(rdr["ID"]); model.RoleID = ConvertToInt(rdr["RoleID"]); model.PurviewCode = ConverToStr(rdr["PurviewCode"]); model.NodeID = ConverToStr(rdr["NodeID"]); rdr.Close(); return(model); }
public override SqlParameter[] GetParameters() { M_UserPurview model = this; SqlParameter[] sp = GetSP(); sp[0].Value = model.ID; sp[1].Value = model.RoleID; sp[2].Value = model.PurviewCode; sp[3].Value = model.NodeID; return(sp); }