Ejemplo n.º 1
0
        public EntityTypeInfo(Type oType)
        {
            TheType = oType;

            OwnerParent = GetOwnerParent(TheType);

            AllDirectParents   = GetDirectParents(TheType);
            AggregatedChildren = GetAggregatedChildren(TheType);
            OwnedChildren      = GetOwnedChildrenLists(TheType);
            LinkedChildren     = GetLinkedChildrenLists(TheType);

            AllChildren = (EntityChildrenListInfo[])ArrayBuilder.ChangeArrayType(
                SetUtil <EntityChildrenListInfo> .GetUnion(OwnedChildren, LinkedChildren),
                typeof(EntityChildrenListInfo));

            Parameters = GetParameters(TheType, AggregatedChildren);

            UniqueParentLinks = GetUniqueParentLinks(TheType);

            ObsoleteMembers = GetObsoleteMembers(TheType);
        }