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

Syntax

Declaration

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

Type Parameters

TEntity
TRelatedEntity

Inheritance Hierarchy

  • System.Object
    System.Object
  • ModelBuilderTest.TestReferenceNavigationBuilder<TEntity, TRelatedEntity>
    ModelBuilderTest.TestReferenceNavigationBuilder(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()

Methods summary

Methods

  • WithMany(Expression<Func<TRelatedEntity, IEnumerable<TEntity>>>)
    WithMany(Expression(Of Func(Of TRelatedEntity, IEnumerable(Of TEntity))))
    public abstract ModelBuilderTest.TestReferenceCollectionBuilder<TRelatedEntity, TEntity> WithMany(Expression<Func<TRelatedEntity, IEnumerable<TEntity>>> collection = null)Public MustOverride Function WithMany(collection As Expression(Of Func(Of TRelatedEntity, IEnumerable(Of TEntity))) = Nothing) As ModelBuilderTest.TestReferenceCollectionBuilder(Of TRelatedEntity, TEntity)

    Parameters

    • collection
      System.Linq.Expressions.Expression<TDelegate><System.Func<T, TResult><TRelatedEntity, System.Collections.Generic.IEnumerable<T><TEntity>>>
      System.Linq.Expressions.Expression<TDelegate>(Of System.Func<T, TResult>(Of TRelatedEntity, System.Collections.Generic.IEnumerable<T>(Of TEntity)))

    Returns

  • WithOne(Expression<Func<TRelatedEntity, TEntity>>)
    WithOne(Expression(Of Func(Of TRelatedEntity, TEntity)))
    public abstract ModelBuilderTest.TestReferenceReferenceBuilder<TEntity, TRelatedEntity> WithOne(Expression<Func<TRelatedEntity, TEntity>> reference = null)Public MustOverride Function WithOne(reference As Expression(Of Func(Of TRelatedEntity, TEntity)) = Nothing) As ModelBuilderTest.TestReferenceReferenceBuilder(Of TEntity, TRelatedEntity)

    Parameters

    • reference
      System.Linq.Expressions.Expression<TDelegate><System.Func<T, TResult><TRelatedEntity, TEntity>>
      System.Linq.Expressions.Expression<TDelegate>(Of System.Func<T, TResult>(Of TRelatedEntity, TEntity))

    Returns

Details

Assembly

Microsoft.EntityFrameworkCore.Tests.dll