Exemplo n.º 1
0
 public static void Delete(Lugares_APMInfo _Lugares_APMInfo)
 {
     _AdoHelper.ExecuteNonQuery(ConnectionString,CommandType.StoredProcedure, "Lugares_APMDelete",
         new SqlParameter("@Cod_APM", _Lugares_APMInfo.Cod_APM),
         new SqlParameter("@Cod_LDV", _Lugares_APMInfo.Cod_LDV)
     );
 }
Exemplo n.º 2
0
 public static void Insert(Lugares_APMInfo _Lugares_APMInfo)
 {
     _AdoHelper.ExecuteNonQuery(ConnectionString, "Lugares_APMInsert",
         new SqlParameter("@Cod_APM", _Lugares_APMInfo.Cod_APM),
         new SqlParameter("@Cod_LDV", _Lugares_APMInfo.Cod_LDV),
         new SqlParameter("@Download", _Lugares_APMInfo.Download),
         new SqlParameter("@Action", _Lugares_APMInfo.Action),
         new SqlParameter("@SyncID", _Lugares_APMInfo.SyncID)
     );
 }
Exemplo n.º 3
0
        /// <summary>
        /// Creates a new instance of the Lugares_APM class and populates it with data from the specified SqlDataReader.
        /// </summary>
        private static Lugares_APMInfo MakeLugares_APM(SqlDataReader dataReader)
        {
            Lugares_APMInfo lugares_APM = new Lugares_APMInfo();

            if (dataReader.IsDBNull(Cod_APM) == false)
                lugares_APM.Cod_APM = dataReader.GetInt32(Cod_APM);
            if (dataReader.IsDBNull(Cod_LDV) == false)
                lugares_APM.Cod_LDV = dataReader.GetInt32(Cod_LDV);
            if (dataReader.IsDBNull(Download) == false)
                lugares_APM.Download = dataReader.GetDateTime(Download);
            if (dataReader.IsDBNull(Action) == false)
                lugares_APM.Action = dataReader.GetString(Action);
            if (dataReader.IsDBNull(SyncID) == false)
                lugares_APM.SyncID = dataReader.GetGuid(SyncID);
            if (dataReader.IsDBNull(SyncTimeStamp) == false)
                lugares_APM.SyncTimeStamp = DateTime.MinValue;

            return lugares_APM;
        }
Exemplo n.º 4
0
 public static void Update(Lugares_APMInfo _Lugares_APMInfo)
 {
     _AdoHelper.ExecuteNonQuery(ConnectionString,CommandType.StoredProcedure, "Lugares_APMUpdate",
         new SqlParameter("@Cod_APM", _Lugares_APMInfo.Cod_APM),
         new SqlParameter("@Cod_LDV", _Lugares_APMInfo.Cod_LDV),
         new SqlParameter("@Download", _Lugares_APMInfo.Download),
         new SqlParameter("@Action", _Lugares_APMInfo.Action),
         new SqlParameter("@SyncID", _Lugares_APMInfo.SyncID)
     );
 }