AddChild() public method

public AddChild ( DocumentDesign design ) : void
design DocumentDesign
return void
Beispiel #1
0
        public DocumentDesign(Configuration configuration, DocumentDesign parent, Type documentType, string discriminator)
            : this(configuration, parent.Table, documentType, discriminator)
        {
            Parent      = parent;
            Projections = parent.Projections.ToDictionary();
            Projections[Table.DiscriminatorColumn] = Projection.From <string>(managedEntity => Discriminator);

            Parent.AddChild(this);
        }
Beispiel #2
0
        public DocumentDesign(Configuration configuration, DocumentDesign parent, Type documentType, string discriminator)
            : this(configuration, parent.Table, documentType, discriminator)
        {
            Base = parent.Base;
            Parent = parent;
            Projections = parent.Projections.ToDictionary();
            Projections[Table.DiscriminatorColumn] = Projection.From<string>(_ => Discriminator);

            Parent.AddChild(this);
        }