ResolvingJoinInfoVisitor modifies UnresolvedJoinInfos and generates ResolvedJoinInfos.
Inheritance: IJoinInfoVisitor
示例#1
0
        public virtual ResolvedJoinInfo ResolveJoinInfo(IJoinInfo joinInfo, IMappingResolutionContext context)
        {
            ArgumentUtility.CheckNotNull("joinInfo", joinInfo);
            ArgumentUtility.CheckNotNull("context", context);

            var resolvedJoinInfo = ResolvingJoinInfoVisitor.ResolveJoinInfo(joinInfo, _resolver, _uniqueIdentifierGenerator, this, context);

            return((ResolvedJoinInfo)ApplyContext(resolvedJoinInfo, SqlExpressionContext.ValueRequired, context));
        }
    public static ResolvedJoinInfo ResolveJoinInfo (
        IJoinInfo joinInfo,
        IMappingResolver resolver,
        UniqueIdentifierGenerator generator,
        IMappingResolutionStage stage,
        IMappingResolutionContext context)
    {
      ArgumentUtility.CheckNotNull ("joinInfo", joinInfo);
      ArgumentUtility.CheckNotNull ("resolver", resolver);
      ArgumentUtility.CheckNotNull ("generator", generator);
      ArgumentUtility.CheckNotNull ("stage", stage);
      ArgumentUtility.CheckNotNull ("context", context);

      var visitor = new ResolvingJoinInfoVisitor (resolver, generator, stage, context);
      return (ResolvedJoinInfo) joinInfo.Accept (visitor);
    }
示例#3
0
        public static ResolvedJoinInfo ResolveJoinInfo(
            IJoinInfo joinInfo,
            IMappingResolver resolver,
            UniqueIdentifierGenerator generator,
            IMappingResolutionStage stage,
            IMappingResolutionContext context)
        {
            ArgumentUtility.CheckNotNull("joinInfo", joinInfo);
            ArgumentUtility.CheckNotNull("resolver", resolver);
            ArgumentUtility.CheckNotNull("generator", generator);
            ArgumentUtility.CheckNotNull("stage", stage);
            ArgumentUtility.CheckNotNull("context", context);

            var visitor = new ResolvingJoinInfoVisitor(resolver, generator, stage, context);

            return((ResolvedJoinInfo)joinInfo.Accept(visitor));
        }