Ejemplo n.º 1
0
        public ReadOnlyCollection <IEntityBase> GetBaseTypesGraph(InheritanceGraphDirection graphDirection)
        {
            List <IEntityBase> list = new List <IEntityBase>();

            IEntityBase baseEntity = this.BaseType;

            while (baseEntity != null)
            {
                list.Add(baseEntity);
                baseEntity = baseEntity.BaseType;
            }

            if (graphDirection == InheritanceGraphDirection.RootToType)
            {
                list.Reverse();
            }

            return(new ReadOnlyCollection <IEntityBase>(list));
        }
Ejemplo n.º 2
0
 public ReadOnlyCollection <IEntityBase> GetBaseTypesGraph(InheritanceGraphDirection graphDirection)
 {
     throw new NotImplementedException();
 }