Пример #1
0
        public override SqlParameter[] GetParameters()
        {
            M_NodeBindDroit model = this;

            SqlParameter[] sp = GetSP();
            sp[0].Value = model.Id;
            sp[1].Value = model.NodeId;
            sp[2].Value = model.FID;
            return(sp);
        }
Пример #2
0
        public M_NodeBindDroit GetModelFromReader(DbDataReader rdr)
        {
            M_NodeBindDroit model = new M_NodeBindDroit();

            model.Id     = Convert.ToInt32(rdr["ID"]);
            model.NodeId = Convert.ToInt32(rdr["NodeID"]);
            model.FID    = Convert.ToInt32(rdr["FID"]);
            rdr.Close();
            rdr.Dispose();
            return(model);
        }