Example #1
0
 public static void Insert(ART_SeguridadAccesoInfo _ART_SeguridadAccesoInfo)
 {
     _AdoHelper.ExecuteNonQuery(ConnectionString, "ART_SeguridadAccesoInsert",
         new SqlParameter("@SeguridadAccesoId", _ART_SeguridadAccesoInfo.SeguridadAccesoId),
         new SqlParameter("@SeguridadModuloId", _ART_SeguridadAccesoInfo.SeguridadModuloId),
         new SqlParameter("@SeguridadRolId", _ART_SeguridadAccesoInfo.SeguridadRolId)
     );
 }
Example #2
0
        /// <summary>
        /// Creates a new instance of the ART_SeguridadAcceso class and populates it with data from the specified SqlDataReader.
        /// </summary>
        private static ART_SeguridadAccesoInfo MakeART_SeguridadAcceso(SqlDataReader dataReader)
        {
            ART_SeguridadAccesoInfo aRT_SeguridadAcceso = new ART_SeguridadAccesoInfo();

            if (dataReader.IsDBNull(SeguridadAccesoId) == false)
                aRT_SeguridadAcceso.SeguridadAccesoId = dataReader.GetInt32(SeguridadAccesoId);
            if (dataReader.IsDBNull(SeguridadModuloId) == false)
                aRT_SeguridadAcceso.SeguridadModuloId = dataReader.GetInt32(SeguridadModuloId);
            if (dataReader.IsDBNull(SeguridadRolId) == false)
                aRT_SeguridadAcceso.SeguridadRolId = dataReader.GetInt32(SeguridadRolId);

            return aRT_SeguridadAcceso;
        }