Search Results for

    Show / Hide Table of Contents

    Interface IMultiRightRelationBuilder<TEntity, TRelation>

    Instances of this class are returned from methods inside the Table<TEntity> class when using the Fluid API and it is not designed to be directly constructed in your application code.

    Namespace: Venflow.Modeling.Definitions.Builder
    Assembly: Venflow.dll
    Syntax
    public interface IMultiRightRelationBuilder<TEntity, TRelation>
        where TEntity : class, new()
        where TRelation : class
    Type Parameters
    Name Description
    TEntity
    TRelation

    The entity type that this relationship targets.

    Methods

    | Improve this Doc View Source

    WithMany(Expression<Func<TRelation, IList<TEntity>>>)

    Configures this as a one-to-many relationship.

    Note that calling this method with no parameters will explicitly configure this side of the relationship to use no navigation property, even if such a property exists on the entity type. If the navigation property is to be used, then it must be specified.

    Declaration
    IForeignKeyRelationBuilder<TEntity, TRelation> WithMany(Expression<Func<TRelation, IList<TEntity>>> navigationProperty)
    Parameters
    Type Name Description
    Expression<Func<TRelation, IList<TEntity>>> navigationProperty

    A lambda expression representing the collection navigation property on the other end of this relationship (blog => blog.Posts). If no property is specified, the relationship will be configured without a navigation property on the other end of the relationship.

    Returns
    Type Description
    IForeignKeyRelationBuilder<TEntity, TRelation>

    An object that can be used to configure the relationship.

    Theme

    • Improve this Doc
    • View Source
    Back to top Copyright © 2021 Twenty