ModelBuilderTest.TestReferenceReferenceBuilder<TEntity, TRelatedEntity> ModelBuilderTest.TestReferenceReferenceBuilder(Of TEntity, TRelatedEntity) Class

Syntax

Declaration

public abstract class TestReferenceReferenceBuilder<TEntity, TRelatedEntity>
    where TEntity : class where TRelatedEntity : classPublic MustInherit Class TestReferenceReferenceBuilder(Of TEntity As Class, TRelatedEntity As Class)

Type Parameters

TEntity
TRelatedEntity

Inheritance Hierarchy

  • System.Object
    System.Object
  • ModelBuilderTest.TestReferenceReferenceBuilder<TEntity, TRelatedEntity>
    ModelBuilderTest.TestReferenceReferenceBuilder(Of TEntity, TRelatedEntity)

Inherited Members

ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Properties summary

Methods summary

Properties

  • Metadata
    Metadata
    public abstract IMutableForeignKey Metadata { get; }Public MustOverride ReadOnly Property Metadata As IMutableForeignKey

    Property Value

Methods

  • HasAnnotation(String, Object)
    HasAnnotation(String, Object)
    public abstract ModelBuilderTest.TestReferenceReferenceBuilder<TEntity, TRelatedEntity> HasAnnotation(string annotation, object value)Public MustOverride Function HasAnnotation(annotation As String, value As Object) As ModelBuilderTest.TestReferenceReferenceBuilder(Of TEntity, TRelatedEntity)

    Parameters

    • annotation
      System.String
      System.String
    • value
      System.Object
      System.Object

    Returns

  • HasForeignKey<TDependentEntity>(Expression<Func<TDependentEntity, Object>>)
    HasForeignKey(Of TDependentEntity)(Expression(Of Func(Of TDependentEntity, Object)))
    public abstract ModelBuilderTest.TestReferenceReferenceBuilder<TEntity, TRelatedEntity> HasForeignKey<TDependentEntity>(Expression<Func<TDependentEntity, object>> foreignKeyExpression)where TDependentEntity : classPublic MustOverride Function HasForeignKey(Of TDependentEntity As Class)(foreignKeyExpression As Expression(Of Func(Of TDependentEntity, Object))) As ModelBuilderTest.TestReferenceReferenceBuilder(Of TEntity, TRelatedEntity)

    Parameters

    • foreignKeyExpression
      System.Linq.Expressions.Expression<TDelegate><System.Func<T, TResult><TDependentEntity, System.Object>>
      System.Linq.Expressions.Expression<TDelegate>(Of System.Func<T, TResult>(Of TDependentEntity, System.Object))

    Returns

  • HasForeignKey<TDependentEntity>(String[])
    HasForeignKey(Of TDependentEntity)(String())
    public abstract ModelBuilderTest.TestReferenceReferenceBuilder<TEntity, TRelatedEntity> HasForeignKey<TDependentEntity>(params string[] foreignKeyPropertyNames)where TDependentEntity : classPublic MustOverride Function HasForeignKey(Of TDependentEntity As Class)(ParamArray foreignKeyPropertyNames As String()) As ModelBuilderTest.TestReferenceReferenceBuilder(Of TEntity, TRelatedEntity)

    Parameters

    • foreignKeyPropertyNames
      System.String[]
      System.String()

    Returns

  • HasPrincipalKey<TPrincipalEntity>(Expression<Func<TPrincipalEntity, Object>>)
    HasPrincipalKey(Of TPrincipalEntity)(Expression(Of Func(Of TPrincipalEntity, Object)))
    public abstract ModelBuilderTest.TestReferenceReferenceBuilder<TEntity, TRelatedEntity> HasPrincipalKey<TPrincipalEntity>(Expression<Func<TPrincipalEntity, object>> keyExpression)where TPrincipalEntity : classPublic MustOverride Function HasPrincipalKey(Of TPrincipalEntity As Class)(keyExpression As Expression(Of Func(Of TPrincipalEntity, Object))) As ModelBuilderTest.TestReferenceReferenceBuilder(Of TEntity, TRelatedEntity)

    Parameters

    • keyExpression
      System.Linq.Expressions.Expression<TDelegate><System.Func<T, TResult><TPrincipalEntity, System.Object>>
      System.Linq.Expressions.Expression<TDelegate>(Of System.Func<T, TResult>(Of TPrincipalEntity, System.Object))

    Returns

  • HasPrincipalKey<TPrincipalEntity>(String[])
    HasPrincipalKey(Of TPrincipalEntity)(String())
    public abstract ModelBuilderTest.TestReferenceReferenceBuilder<TEntity, TRelatedEntity> HasPrincipalKey<TPrincipalEntity>(params string[] keyPropertyNames)where TPrincipalEntity : classPublic MustOverride Function HasPrincipalKey(Of TPrincipalEntity As Class)(ParamArray keyPropertyNames As String()) As ModelBuilderTest.TestReferenceReferenceBuilder(Of TEntity, TRelatedEntity)

    Parameters

    • keyPropertyNames
      System.String[]
      System.String()

    Returns

  • IsRequired(Boolean)
    IsRequired(Boolean)
    public abstract ModelBuilderTest.TestReferenceReferenceBuilder<TEntity, TRelatedEntity> IsRequired(bool isRequired = true)Public MustOverride Function IsRequired(isRequired As Boolean = True) As ModelBuilderTest.TestReferenceReferenceBuilder(Of TEntity, TRelatedEntity)

    Parameters

    • isRequired
      System.Boolean
      System.Boolean

    Returns

  • OnDelete(DeleteBehavior)
    OnDelete(DeleteBehavior)
    public abstract ModelBuilderTest.TestReferenceReferenceBuilder<TEntity, TRelatedEntity> OnDelete(DeleteBehavior deleteBehavior)Public MustOverride Function OnDelete(deleteBehavior As DeleteBehavior) As ModelBuilderTest.TestReferenceReferenceBuilder(Of TEntity, TRelatedEntity)

    Parameters

    Returns

Details

Assembly

Microsoft.EntityFrameworkCore.Tests.dll