Interface INotRequiredSingleRightRelationBuilder<TEntity, TRelation>
This interface hosts relation methods for the right side of a relation.
Inherited Members
Namespace: Venflow.Modeling.Definitions.Builder
Assembly: Venflow.dll
Syntax
public interface INotRequiredSingleRightRelationBuilder<TEntity, TRelation> : IRequiredSingleRightRelationBuilder<TEntity, TRelation> where TEntity : class, new()
where TRelation : class
Type Parameters
Name | Description |
---|---|
TEntity | |
TRelation |
Methods
| Improve this Doc View SourceWithOne()
Configures this as a one-to-one relationship.
Note that calling this method 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()
Returns
Type | Description |
---|---|
IForeignKeyRelationBuilder<TEntity, TRelation> | An object that can be used to configure the relationship. |