Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ChildEntity"/> class.
        /// </summary>
        /// <param name="complexEntity">
        /// The complex entity.
        /// </param>
        /// <param name="fakeChildEntityId">
        /// The fake child entity id.
        /// </param>
        public ChildEntity([NotNull] ComplexEntity complexEntity, int fakeChildEntityId)
        {
            if (complexEntity == null)
            {
                throw new ArgumentNullException(nameof(complexEntity));
            }

            this.ComplexEntity     = complexEntity;
            this.FakeChildEntityId = fakeChildEntityId;
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ChildEntity"/> class.
 /// </summary>
 /// <param name="complexEntity">
 /// The complex entity.
 /// </param>
 public ChildEntity(ComplexEntity complexEntity)
     : this(complexEntity, 0)
 {
 }