Пример #1
0
 public static void Delete(Productos_PromocionadosInfo _Productos_PromocionadosInfo)
 {
     _AdoHelper.ExecuteNonQuery(ConnectionString,CommandType.StoredProcedure, "Productos_PromocionadosDelete",
         new SqlParameter("@Cod_Visita", _Productos_PromocionadosInfo.Cod_Visita),
         new SqlParameter("@Cod_TipoVis", _Productos_PromocionadosInfo.Cod_TipoVis),
         new SqlParameter("@Cod_Producto", _Productos_PromocionadosInfo.Cod_Producto)
     );
 }
Пример #2
0
 public static void Insert(Productos_PromocionadosInfo _Productos_PromocionadosInfo)
 {
     _AdoHelper.ExecuteNonQuery(ConnectionString, "Productos_PromocionadosInsert",
         new SqlParameter("@Cod_Visita", _Productos_PromocionadosInfo.Cod_Visita),
         new SqlParameter("@Cod_TipoVis", _Productos_PromocionadosInfo.Cod_TipoVis),
         new SqlParameter("@Cod_Producto", _Productos_PromocionadosInfo.Cod_Producto),
         new SqlParameter("@Secuencia", _Productos_PromocionadosInfo.Secuencia),
         new SqlParameter("@Muestras", _Productos_PromocionadosInfo.Muestras),
         new SqlParameter("@SyncID", _Productos_PromocionadosInfo.SyncID)
     );
 }
Пример #3
0
        /// <summary>
        /// Creates a new instance of the Productos_Promocionados class and populates it with data from the specified SqlDataReader.
        /// </summary>
        private static Productos_PromocionadosInfo MakeProductos_Promocionados(SqlDataReader dataReader)
        {
            Productos_PromocionadosInfo productos_Promocionados = new Productos_PromocionadosInfo();

            if (dataReader.IsDBNull(Cod_Visita) == false)
                productos_Promocionados.Cod_Visita = dataReader.GetInt32(Cod_Visita);
            if (dataReader.IsDBNull(Cod_TipoVis) == false)
                productos_Promocionados.Cod_TipoVis = dataReader.GetInt32(Cod_TipoVis);
            if (dataReader.IsDBNull(Cod_Producto) == false)
                productos_Promocionados.Cod_Producto = dataReader.GetInt32(Cod_Producto);
            if (dataReader.IsDBNull(Secuencia) == false)
                productos_Promocionados.Secuencia = dataReader.GetInt32(Secuencia);
            if (dataReader.IsDBNull(Muestras) == false)
                productos_Promocionados.Muestras = dataReader.GetInt32(Muestras);
            if (dataReader.IsDBNull(SyncID) == false)
                productos_Promocionados.SyncID = dataReader.GetGuid(SyncID);
            if (dataReader.IsDBNull(SyncTimeStamp) == false)
                productos_Promocionados.SyncTimeStamp = DateTime.MinValue;

            return productos_Promocionados;
        }
Пример #4
0
 public static void Update(Productos_PromocionadosInfo _Productos_PromocionadosInfo)
 {
     _AdoHelper.ExecuteNonQuery(ConnectionString,CommandType.StoredProcedure, "Productos_PromocionadosUpdate",
         new SqlParameter("@Cod_Visita", _Productos_PromocionadosInfo.Cod_Visita),
         new SqlParameter("@Cod_TipoVis", _Productos_PromocionadosInfo.Cod_TipoVis),
         new SqlParameter("@Cod_Producto", _Productos_PromocionadosInfo.Cod_Producto),
         new SqlParameter("@Secuencia", _Productos_PromocionadosInfo.Secuencia),
         new SqlParameter("@Muestras", _Productos_PromocionadosInfo.Muestras),
         new SqlParameter("@SyncID", _Productos_PromocionadosInfo.SyncID)
     );
 }