Example #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));
        }
Example #2
0
 public ReadOnlyCollection <IEntityBase> GetBaseTypesGraph(InheritanceGraphDirection graphDirection)
 {
     throw new NotImplementedException();
 }