/// <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"]); } }
/// <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"]); } }