예제 #1
0
        private static void Visit(EntityElementBuilder entityConfig, Action <EntityElementBuilder> visitor)
        {
            foreach (var relation in entityConfig.RelationConfigs.Where(x => x.TargetEntityElementConfig != null))
            {
                Visit(relation.TargetEntityElementConfig, visitor);
            }

            visitor(entityConfig);
        }
 public EntityRelationElementBuilder DirectTo(EntityElementBuilder entityElementBuilder)
 {
     _targetEntityElement       = null;
     _targetEntityElementConfig = entityElementBuilder;
     return(this);
 }
예제 #3
0
 public EntityRelationElementBuilder DirectTo(EntityElement entityElement)
 {
     _targetEntityElement      = entityElement;
     TargetEntityElementConfig = null;
     return(this);
 }