src/Inflatable/BaseClasses/MappingBaseClass.cs
/// <summary>
/// Sets a property as a many to one type.
/// </summary>
/// <typeparam name="TDataType">The type of the data type.</typeparam>
/// <param name="expression">Expression pointing to the property</param>
/// <returns>The many to many object</returns>
Sets a property as a many to one type.
Sets a property as a many to one type .
public ManyToOneMany<TClassType, TDataType> ManyToOne<TDataType>(System.Linq.Expressions.Expression<Func<TClassType, IList<TDataType>>> expression)
            where TDataType : class
        {
            if (expression is null)
                throw new ArgumentNullException(nameof(expression));
            var ReturnValue = new ManyToOneMany<TClassType, TDataType>(expression, this);
            ManyToOneProperties.Add(ReturnValue);
            return ReturnValue;
        }
public ManyToOneMany < TClassType , TDataType > ManyToOne < TDataType > ( System . Linq . Expressions . Expression < Func < TClassType , IList < TDataType > > > expression ) where TDataType : class { if ( expression is null ) throw new ArgumentNullException ( nameof ( expression ) ) ; var ReturnValue = new ManyToOneMany < TClassType , TDataType > ( expression , this ) ; ManyToOneProperties . Add ( ReturnValue ) ; return ReturnValue ; }
Sets a property as a many to one type.
Sets a property as a many to one type .
The many to many object
The many to many object
expression
System.Linq.Expressions.Expression<Func<TClassType, IList<TDataType>>>
Expression pointing to the property
Expression pointing to the property
typeparam
The type of the data type.
The type of the data type .