ModelBuilderTest.TestEntityTypeBuilder<TEntity> ModelBuilderTest.TestEntityTypeBuilder(Of TEntity) Class

Syntax

Declaration

public abstract class TestEntityTypeBuilder<TEntity>
    where TEntity : classPublic MustInherit Class TestEntityTypeBuilder(Of TEntity As Class)

Type Parameters

TEntity

Inheritance Hierarchy

  • System.Object
    System.Object
  • ModelBuilderTest.TestEntityTypeBuilder<TEntity>
    ModelBuilderTest.TestEntityTypeBuilder(Of TEntity)

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 IMutableEntityType Metadata { get; }Public MustOverride ReadOnly Property Metadata As IMutableEntityType

    Property Value

Methods

  • HasAlternateKey(Expression<Func<TEntity, Object>>)
    HasAlternateKey(Expression(Of Func(Of TEntity, Object)))
    public abstract ModelBuilderTest.TestKeyBuilder HasAlternateKey(Expression<Func<TEntity, object>> keyExpression)Public MustOverride Function HasAlternateKey(keyExpression As Expression(Of Func(Of TEntity, Object))) As ModelBuilderTest.TestKeyBuilder

    Parameters

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

    Returns

  • HasAlternateKey(String[])
    HasAlternateKey(String())
    public abstract ModelBuilderTest.TestKeyBuilder HasAlternateKey(params string[] propertyNames)Public MustOverride Function HasAlternateKey(ParamArray propertyNames As String()) As ModelBuilderTest.TestKeyBuilder

    Parameters

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

    Returns

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

    Parameters

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

    Returns

  • HasBaseType(String)
    HasBaseType(String)
    public abstract ModelBuilderTest.TestEntityTypeBuilder<TEntity> HasBaseType(string baseEntityTypeName)Public MustOverride Function HasBaseType(baseEntityTypeName As String) As ModelBuilderTest.TestEntityTypeBuilder(Of TEntity)

    Parameters

    • baseEntityTypeName
      System.String
      System.String

    Returns

  • HasBaseType<TBaseEntity>()
    HasBaseType(Of TBaseEntity)()
    public abstract ModelBuilderTest.TestEntityTypeBuilder<TEntity> HasBaseType<TBaseEntity>()where TBaseEntity : classPublic MustOverride Function HasBaseType(Of TBaseEntity As Class) As ModelBuilderTest.TestEntityTypeBuilder(Of TEntity)

    Returns

  • HasChangeTrackingStrategy(ChangeTrackingStrategy)
    HasChangeTrackingStrategy(ChangeTrackingStrategy)
    public abstract ModelBuilderTest.TestEntityTypeBuilder<TEntity> HasChangeTrackingStrategy(ChangeTrackingStrategy changeTrackingStrategy)Public MustOverride Function HasChangeTrackingStrategy(changeTrackingStrategy As ChangeTrackingStrategy) As ModelBuilderTest.TestEntityTypeBuilder(Of TEntity)

    Parameters

    Returns

  • HasIndex(Expression<Func<TEntity, Object>>)
    HasIndex(Expression(Of Func(Of TEntity, Object)))
    public abstract ModelBuilderTest.TestIndexBuilder HasIndex(Expression<Func<TEntity, object>> indexExpression)Public MustOverride Function HasIndex(indexExpression As Expression(Of Func(Of TEntity, Object))) As ModelBuilderTest.TestIndexBuilder

    Parameters

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

    Returns

  • HasIndex(String[])
    HasIndex(String())
    public abstract ModelBuilderTest.TestIndexBuilder HasIndex(params string[] propertyNames)Public MustOverride Function HasIndex(ParamArray propertyNames As String()) As ModelBuilderTest.TestIndexBuilder

    Parameters

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

    Returns

  • HasKey(Expression<Func<TEntity, Object>>)
    HasKey(Expression(Of Func(Of TEntity, Object)))
    public abstract ModelBuilderTest.TestKeyBuilder HasKey(Expression<Func<TEntity, object>> keyExpression)Public MustOverride Function HasKey(keyExpression As Expression(Of Func(Of TEntity, Object))) As ModelBuilderTest.TestKeyBuilder

    Parameters

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

    Returns

  • HasKey(String[])
    HasKey(String())
    public abstract ModelBuilderTest.TestKeyBuilder HasKey(params string[] propertyNames)Public MustOverride Function HasKey(ParamArray propertyNames As String()) As ModelBuilderTest.TestKeyBuilder

    Parameters

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

    Returns

  • HasMany<TRelatedEntity>(Expression<Func<TEntity, IEnumerable<TRelatedEntity>>>)
    HasMany(Of TRelatedEntity)(Expression(Of Func(Of TEntity, IEnumerable(Of TRelatedEntity))))
    public abstract ModelBuilderTest.TestCollectionNavigationBuilder<TEntity, TRelatedEntity> HasMany<TRelatedEntity>(Expression<Func<TEntity, IEnumerable<TRelatedEntity>>> collection = null)where TRelatedEntity : classPublic MustOverride Function HasMany(Of TRelatedEntity As Class)(collection As Expression(Of Func(Of TEntity, IEnumerable(Of TRelatedEntity))) = Nothing) As ModelBuilderTest.TestCollectionNavigationBuilder(Of TEntity, TRelatedEntity)

    Parameters

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

    Returns

  • HasOne<TRelatedEntity>(Expression<Func<TEntity, TRelatedEntity>>)
    HasOne(Of TRelatedEntity)(Expression(Of Func(Of TEntity, TRelatedEntity)))
    public abstract ModelBuilderTest.TestReferenceNavigationBuilder<TEntity, TRelatedEntity> HasOne<TRelatedEntity>(Expression<Func<TEntity, TRelatedEntity>> reference = null)where TRelatedEntity : classPublic MustOverride Function HasOne(Of TRelatedEntity As Class)(reference As Expression(Of Func(Of TEntity, TRelatedEntity)) = Nothing) As ModelBuilderTest.TestReferenceNavigationBuilder(Of TEntity, TRelatedEntity)

    Parameters

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

    Returns

  • Ignore(Expression<Func<TEntity, Object>>)
    Ignore(Expression(Of Func(Of TEntity, Object)))
    public abstract ModelBuilderTest.TestEntityTypeBuilder<TEntity> Ignore(Expression<Func<TEntity, object>> propertyExpression)Public MustOverride Function Ignore(propertyExpression As Expression(Of Func(Of TEntity, Object))) As ModelBuilderTest.TestEntityTypeBuilder(Of TEntity)

    Parameters

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

    Returns

  • Ignore(String)
    Ignore(String)
    public abstract ModelBuilderTest.TestEntityTypeBuilder<TEntity> Ignore(string propertyName)Public MustOverride Function Ignore(propertyName As String) As ModelBuilderTest.TestEntityTypeBuilder(Of TEntity)

    Parameters

    • propertyName
      System.String
      System.String

    Returns

  • Property<TProperty>(Expression<Func<TEntity, TProperty>>)
    Property(Of TProperty)(Expression(Of Func(Of TEntity, TProperty)))
    public abstract ModelBuilderTest.TestPropertyBuilder<TProperty> Property<TProperty>(Expression<Func<TEntity, TProperty>> propertyExpression)Public MustOverride Function Property(Of TProperty)(propertyExpression As Expression(Of Func(Of TEntity, TProperty))) As ModelBuilderTest.TestPropertyBuilder(Of TProperty)

    Parameters

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

    Returns

  • Property<TProperty>(String)
    Property(Of TProperty)(String)
    public abstract ModelBuilderTest.TestPropertyBuilder<TProperty> Property<TProperty>(string propertyName)Public MustOverride Function Property(Of TProperty)(propertyName As String) As ModelBuilderTest.TestPropertyBuilder(Of TProperty)

    Parameters

    • propertyName
      System.String
      System.String

    Returns

  • UsePropertyAccessMode(PropertyAccessMode)
    UsePropertyAccessMode(PropertyAccessMode)
    public abstract ModelBuilderTest.TestEntityTypeBuilder<TEntity> UsePropertyAccessMode(PropertyAccessMode propertyAccessMode)Public MustOverride Function UsePropertyAccessMode(propertyAccessMode As PropertyAccessMode) As ModelBuilderTest.TestEntityTypeBuilder(Of TEntity)

    Parameters

    Returns

Details

Assembly

Microsoft.EntityFrameworkCore.Tests.dll