src/Inflatable/BaseClasses/MappingBaseClass.cs
/// <summary>
/// Sets a property as a reference type
/// </summary>
/// <typeparam name="TDataType">Data type</typeparam>
/// <param name="expression">Expression pointing to the property</param>
/// <returns>the reference object</returns>
/// <exception cref="ArgumentNullException">expression</exception>
Sets a property as a reference type
Sets a property as a reference type
public Reference<TClassType, TDataType> Reference<TDataType>(System.Linq.Expressions.Expression<Func<TClassType, TDataType>> expression)
        {
            if (expression is null)
                throw new ArgumentNullException(nameof(expression));
            var ReturnValue = new Reference<TClassType, TDataType>(expression, this);
            ReferenceProperties.Add(ReturnValue);
            return ReturnValue;
        }
public Reference < TClassType , TDataType > Reference < TDataType > ( System . Linq . Expressions . Expression < Func < TClassType , TDataType > > expression ) { if ( expression is null ) throw new ArgumentNullException ( nameof ( expression ) ) ; var ReturnValue = new Reference < TClassType , TDataType > ( expression , this ) ; ReferenceProperties . Add ( ReturnValue ) ; return ReturnValue ; }
Sets a property as a reference type
Sets a property as a reference type
the reference object
the reference object
None
expression
System.Linq.Expressions.Expression<Func<TClassType, TDataType>>
Expression pointing to the property
Expression pointing to the property
typeparam
None