Search Results for

    Show / Hide Table of Contents

    Interface IForeignKeyRelationBuilder<TEntity, TRelation>

    This interface hosts relation methods for the foreign key configurations.

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

    Methods

    | Improve this Doc View Source

    UsingForeignKey<TKey>(Expression<Func<TEntity, TKey>>)

    Configures the property to be used as the foreign key for this relationship.

    Declaration
    void UsingForeignKey<TKey>(Expression<Func<TEntity, TKey>> navigationProperty)
    Parameters
    Type Name Description
    Expression<Func<TEntity, TKey>> navigationProperty

    A lambda expression representing the foreign key property (post => post.BlogId).

    Type Parameters
    Name Description
    TKey

    The type of the foreign key.

    | Improve this Doc View Source

    UsingForeignKey<TKey>(Expression<Func<TRelation, TKey>>)

    Configures the property to be used as the foreign key for this relationship.

    Declaration
    void UsingForeignKey<TKey>(Expression<Func<TRelation, TKey>> navigationProperty)
    Parameters
    Type Name Description
    Expression<Func<TRelation, TKey>> navigationProperty

    A lambda expression representing the foreign key property (post => post.BlogId).

    Type Parameters
    Name Description
    TKey

    The type of the foreign key.

    Theme

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