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