コード例 #1
0
ファイル: ART_SeguridadRolDb.cs プロジェクト: Avaruz/Artemisa
 public static void Insert(ART_SeguridadRolInfo _ART_SeguridadRolInfo)
 {
     _AdoHelper.ExecuteNonQuery(ConnectionString, "ART_SeguridadRolInsert",
         new SqlParameter("@SeguridadRolId", _ART_SeguridadRolInfo.SeguridadRolId),
         new SqlParameter("@DescripcionRol", _ART_SeguridadRolInfo.DescripcionRol),
         new SqlParameter("@Activo", _ART_SeguridadRolInfo.Activo)
     );
 }
コード例 #2
0
ファイル: ART_SeguridadRolDb.cs プロジェクト: Avaruz/Artemisa
        /// <summary>
        /// Creates a new instance of the ART_SeguridadRol class and populates it with data from the specified SqlDataReader.
        /// </summary>
        private static ART_SeguridadRolInfo MakeART_SeguridadRol(SqlDataReader dataReader)
        {
            ART_SeguridadRolInfo aRT_SeguridadRol = new ART_SeguridadRolInfo();

            if (dataReader.IsDBNull(SeguridadRolId) == false)
                aRT_SeguridadRol.SeguridadRolId = dataReader.GetInt32(SeguridadRolId);
            if (dataReader.IsDBNull(DescripcionRol) == false)
                aRT_SeguridadRol.DescripcionRol = dataReader.GetString(DescripcionRol);
            if (dataReader.IsDBNull(Activo) == false)
                aRT_SeguridadRol.Activo = dataReader.GetBoolean(Activo);

            return aRT_SeguridadRol;
        }