예제 #1
0
파일: EntityBase.cs 프로젝트: psulek/doemd
        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));
        }
예제 #2
0
 public ReadOnlyCollection <IEntityBase> GetBaseTypesGraph(InheritanceGraphDirection graphDirection)
 {
     throw new NotImplementedException();
 }