Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="EntityRelationshipModificationValueProxy"/> class.
        /// </summary>
        /// <param name="key">The key.</param>
        /// <param name="relationshipTypeId">The relationship type identifier.</param>
        /// <param name="initialCollection">The initial collection.</param>
        internal EntityRelationshipModificationValueProxy(EntityRelationshipModificationProxy key, long relationshipTypeId, IEnumerable <IMutableIdKey> initialCollection)
        {
            Key = key;
            RelationshipTypeId = relationshipTypeId;
            IsAttached         = false;

            if (initialCollection == null)
            {
                Value = new ChangeTracker <IMutableIdKey>( );
            }
            else
            {
                Value = new ChangeTracker <IMutableIdKey>(initialCollection);
            }
        }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EntityRelationshipModificationValueProxy"/> class.
 /// </summary>
 /// <param name="key">The key.</param>
 /// <param name="relationshipTypeId">The relationship type identifier.</param>
 internal EntityRelationshipModificationValueProxy(EntityRelationshipModificationProxy key, long relationshipTypeId)
     : this(key, relationshipTypeId, null)
 {
 }