コード例 #1
0
 public SqlParameter[] GetParameters(M_Subscribe model)
 {
     SqlParameter[] sp = GetSP();
     sp[0].Value = model.ID;
     sp[1].Value = model.SubscribeName;
     return(sp);
 }
コード例 #2
0
        public M_Subscribe GetModelFromReader(DbDataReader rdr)
        {
            M_Subscribe model = new M_Subscribe();

            model.ID            = Convert.ToInt32(rdr["ID"]);
            model.SubscribeName = rdr["SubscribeName"].ToString();
            rdr.Close();
            return(model);
        }