Exemplo n.º 1
0
 public static void Insert(TablaControlInfo tablaControlInfo)
 {
     _AdoHelper.ExecuteNonQuery(ConnectionString, "TablaControlInsert",
         new SqlParameter("@Periodo", tablaControlInfo.Periodo),
         new SqlParameter("@NC", tablaControlInfo.NC)
     );
 }
Exemplo n.º 2
0
        /// <summary>
        /// Creates a new instance of the TablaControl class and populates it with data from the specified SqlDataReader.
        /// </summary>
        private static TablaControlInfo MakeTablaControl(SqlDataReader dataReader)
        {
            TablaControlInfo tablaControl = new TablaControlInfo();

            if (dataReader.IsDBNull(Periodo) == false)
                tablaControl.Periodo = dataReader.GetString(Periodo);
            if (dataReader.IsDBNull(NC) == false)
                tablaControl.NC = dataReader.GetInt32(NC);
            return tablaControl;
        }