Example #1
0
 public static void Delete(N_Esp_ProdInfo _N_Esp_ProdInfo)
 {
     _AdoHelper.ExecuteNonQuery(ConnectionString,CommandType.StoredProcedure, "N_Esp_ProdDelete",
         new SqlParameter("@cod_producto", _N_Esp_ProdInfo.cod_producto),
         new SqlParameter("@cod_especialidad", _N_Esp_ProdInfo.cod_especialidad)
     );
 }
Example #2
0
 public static void Insert(N_Esp_ProdInfo _N_Esp_ProdInfo)
 {
     _AdoHelper.ExecuteNonQuery(ConnectionString, "N_Esp_ProdInsert",
         new SqlParameter("@cod_producto", _N_Esp_ProdInfo.cod_producto),
         new SqlParameter("@cod_especialidad", _N_Esp_ProdInfo.cod_especialidad),
         new SqlParameter("@action", _N_Esp_ProdInfo.action),
         new SqlParameter("@download", _N_Esp_ProdInfo.download),
         new SqlParameter("@SyncID", _N_Esp_ProdInfo.SyncID)
     );
 }
Example #3
0
        /// <summary>
        /// Creates a new instance of the N_Esp_Prod class and populates it with data from the specified SqlDataReader.
        /// </summary>
        private static N_Esp_ProdInfo MakeN_Esp_Prod(SqlDataReader dataReader)
        {
            N_Esp_ProdInfo n_Esp_Prod = new N_Esp_ProdInfo();

            if (dataReader.IsDBNull(Cod_producto) == false)
                n_Esp_Prod.cod_producto = dataReader.GetInt32(Cod_producto);
            if (dataReader.IsDBNull(Cod_especialidad) == false)
                n_Esp_Prod.cod_especialidad = dataReader.GetInt32(Cod_especialidad);
            if (dataReader.IsDBNull(Action) == false)
                n_Esp_Prod.action = dataReader.GetString(Action);
            if (dataReader.IsDBNull(Download) == false)
                n_Esp_Prod.download = dataReader.GetDateTime(Download);
            if (dataReader.IsDBNull(SyncID) == false)
                n_Esp_Prod.SyncID = dataReader.GetGuid(SyncID);
            if (dataReader.IsDBNull(SyncTimeStamp) == false)
                n_Esp_Prod.SyncTimeStamp = DateTime.MinValue;

            return n_Esp_Prod;
        }
Example #4
0
 public static void Update(N_Esp_ProdInfo _N_Esp_ProdInfo)
 {
     _AdoHelper.ExecuteNonQuery(ConnectionString,CommandType.StoredProcedure, "N_Esp_ProdUpdate",
         new SqlParameter("@cod_producto", _N_Esp_ProdInfo.cod_producto),
         new SqlParameter("@cod_especialidad", _N_Esp_ProdInfo.cod_especialidad),
         new SqlParameter("@action", _N_Esp_ProdInfo.action),
         new SqlParameter("@download", _N_Esp_ProdInfo.download),
         new SqlParameter("@SyncID", _N_Esp_ProdInfo.SyncID)
     );
 }