src/Inflatable/Aspect/EndMethod/IManyToOneProperty.cs
/// <summary>
/// Setups the specified return value name.
/// </summary>
/// <param name="returnValueName">Name of the return value.</param>
/// <param name="method">The method.</param>
/// <param name="mapping">The mapping.</param>
/// <param name="builder">The builder.</param>
Setups the specified return value name.
Setups the specified return value name .
public void Setup(string returnValueName, MethodInfo method, IMapping mapping, StringBuilder builder)
        {
            if (mapping is null)
                return;
            var Property = mapping.ManyToOneProperties.Find(x => x.Name == method.Name.Replace("get_", string.Empty, StringComparison.Ordinal));
            if (Property is null)
                return;
            if (Property is IManyToOneListProperty)
            {
                LoadList(returnValueName, builder, Property);
            }
            else
            {
                LoadSingle(returnValueName, builder, Property);
            }
        }
public void Setup ( string returnValueName , MethodInfo method , IMapping mapping , StringBuilder builder ) { if ( mapping is null ) return ; var Property = mapping . ManyToOneProperties . Find ( x => x . Name == method . Name . Replace ( " " , string . Empty , StringComparison . Ordinal ) ) ; if ( Property is null ) return ; if ( Property is IManyToOneListProperty ) { LoadList ( returnValueName , builder , Property ) ; } else { LoadSingle ( returnValueName , builder , Property ) ; } }
Setups the specified return value name.
Setups the specified return value name .
returnValueName
string
Name of the return value.
Name of the return value .
method
MethodInfo
None
mapping
IMapping
None
builder
StringBuilder
None