Search Results for

    Show / Hide Table of Contents

    Interface IRequiredSingleRightRelationBuilder<TEntity, TRelation>

    This interface hosts relation methods for the right side of a relation.

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

    Methods

    | Improve this Doc View Source

    WithOne(Expression<Func<TRelation, TEntity>>)

    Configures this as a one-to-one 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> WithOne(Expression<Func<TRelation, TEntity>> navigationProperty)
    Parameters
    Type Name Description
    Expression<Func<TRelation, TEntity>> navigationProperty

    A lambda expression representing the reference navigation property on the other end of this relationship (blog => blog.BlogInfo). 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