Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MetaAttributeCollection"/> class.
        /// </summary>
        /// <param name="OwnerId">The owner id.</param>
        /// <param name="OwnerType">Type of the owner.</param>
        /// <param name="reader">The reader.</param>
        internal MetaAttributeCollection(int OwnerId, MetaAttributeOwnerType OwnerType, SqlDataReader reader)
        {
            _OwnerId   = OwnerId;
            _OwnerType = OwnerType;

            while (reader.Read())
            {
                this.contents.Add((string)reader["Key"], (string)reader["Value"]);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MetaAttributeCollection"/> class.
        /// </summary>
        /// <param name="OwnerId">The owner id.</param>
        /// <param name="OwnerType">Type of the owner.</param>
        /// <param name="reader">The reader.</param>
        internal MetaAttributeCollection(int OwnerId, MetaAttributeOwnerType OwnerType, SqlDataReader reader)
        {
            _OwnerId = OwnerId;
            _OwnerType = OwnerType;

            while(reader.Read())
            {
                this.contents.Add((string)reader["Key"], (string)reader["Value"]);
            }
        }