public M_PageSkins GetModelFromReader(DbDataReader rdr) { M_PageSkins model = new M_PageSkins(); model.id = Convert.ToInt32(rdr["id"]); model.Stylename = rdr["Stylename"].ToString(); model.ShowImg = rdr["ShowImg"].ToString(); model.StyleUrl = rdr["StyleUrl"].ToString(); model.IsDefault = Convert.ToInt32(rdr["IsDefault"]); model.DefaultTemplate = rdr["DefaultTemplate"].ToString(); model.NodeTemplate = rdr["NodeTemplate"].ToString(); rdr.Close(); return(model); }
public override SqlParameter[] GetParameters() { M_PageSkins model = this; SqlParameter[] sp = GetSP(); sp[0].Value = model.id; sp[1].Value = model.Stylename; sp[2].Value = model.ShowImg; sp[3].Value = model.StyleUrl; sp[4].Value = model.IsDefault; sp[5].Value = model.DefaultTemplate; sp[6].Value = model.NodeTemplate; return(sp); }