ModelBuilderGenericTest.GenericTestEntityTypeBuilder<TEntity> ModelBuilderGenericTest.GenericTestEntityTypeBuilder(Of TEntity) Class

Syntax

Declaration

protected class GenericTestEntityTypeBuilder<TEntity> : ModelBuilderTest.TestEntityTypeBuilder<TEntity> where TEntity : classProtected Class GenericTestEntityTypeBuilder(Of TEntity As Class)
    Inherits ModelBuilderTest.TestEntityTypeBuilder(Of TEntity)

Type Parameters

TEntity

Inheritance Hierarchy

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()

Constructors summary

Properties summary

Methods summary

Constructors

  • GenericTestEntityTypeBuilder(EntityTypeBuilder<TEntity>)
    GenericTestEntityTypeBuilder(EntityTypeBuilder(Of TEntity))
    public GenericTestEntityTypeBuilder(EntityTypeBuilder<TEntity> entityTypeBuilder)Public Sub New(entityTypeBuilder As EntityTypeBuilder(Of TEntity))

    Parameters

Properties

  • EntityTypeBuilder
    EntityTypeBuilder
    protected EntityTypeBuilder<TEntity> EntityTypeBuilder { get; }Protected ReadOnly Property EntityTypeBuilder As EntityTypeBuilder(Of TEntity)

    Property Value

  • Metadata
    Metadata
    public override IMutableEntityType Metadata { get; }Public Overrides ReadOnly Property Metadata As IMutableEntityType

    Property Value

Methods

  • HasAlternateKey(Expression<Func<TEntity, Object>>)
    HasAlternateKey(Expression(Of Func(Of TEntity, Object)))
    public override ModelBuilderTest.TestKeyBuilder HasAlternateKey(Expression<Func<TEntity, object>> keyExpression)Public Overrides 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 override ModelBuilderTest.TestKeyBuilder HasAlternateKey(params string[] propertyNames)Public Overrides Function HasAlternateKey(ParamArray propertyNames As String()) As ModelBuilderTest.TestKeyBuilder

    Parameters

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

    Returns

  • HasAnnotation(String, Object)
    HasAnnotation(String, Object)
    public override ModelBuilderTest.TestEntityTypeBuilder<TEntity> HasAnnotation(string annotation, object value)Public Overrides 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 override ModelBuilderTest.TestEntityTypeBuilder<TEntity> HasBaseType(string baseEntityTypeName)Public Overrides Function HasBaseType(baseEntityTypeName As String) As ModelBuilderTest.TestEntityTypeBuilder(Of TEntity)

    Parameters

    • baseEntityTypeName
      System.String
      System.String

    Returns

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

    Returns

  • HasChangeTrackingStrategy(ChangeTrackingStrategy)
    HasChangeTrackingStrategy(ChangeTrackingStrategy)
    public override ModelBuilderTest.TestEntityTypeBuilder<TEntity> HasChangeTrackingStrategy(ChangeTrackingStrategy changeTrackingStrategy)Public Overrides 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 override ModelBuilderTest.TestIndexBuilder HasIndex(Expression<Func<TEntity, object>> indexExpression)Public Overrides 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 override ModelBuilderTest.TestIndexBuilder HasIndex(params string[] propertyNames)Public Overrides 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 override ModelBuilderTest.TestKeyBuilder HasKey(Expression<Func<TEntity, object>> keyExpression)Public Overrides 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 override ModelBuilderTest.TestKeyBuilder HasKey(params string[] propertyNames)Public Overrides 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 override ModelBuilderTest.TestCollectionNavigationBuilder<TEntity, TRelatedEntity> HasMany<TRelatedEntity>(Expression<Func<TEntity, IEnumerable<TRelatedEntity>>> collection = null)where TRelatedEntity : classPublic Overrides 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 override ModelBuilderTest.TestReferenceNavigationBuilder<TEntity, TRelatedEntity> HasOne<TRelatedEntity>(Expression<Func<TEntity, TRelatedEntity>> reference = null)where TRelatedEntity : classPublic Overrides 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 override ModelBuilderTest.TestEntityTypeBuilder<TEntity> Ignore(Expression<Func<TEntity, object>> propertyExpression)Public Overrides 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 override ModelBuilderTest.TestEntityTypeBuilder<TEntity> Ignore(string propertyName)Public Overrides 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 override ModelBuilderTest.TestPropertyBuilder<TProperty> Property<TProperty>(Expression<Func<TEntity, TProperty>> propertyExpression)Public Overrides 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 override ModelBuilderTest.TestPropertyBuilder<TProperty> Property<TProperty>(string propertyName)Public Overrides Function Property(Of TProperty)(propertyName As String) As ModelBuilderTest.TestPropertyBuilder(Of TProperty)

    Parameters

    • propertyName
      System.String
      System.String

    Returns

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

    Parameters

    Returns

  • Wrap(EntityTypeBuilder<TEntity>)
    Wrap(EntityTypeBuilder(Of TEntity))
    protected virtual ModelBuilderTest.TestEntityTypeBuilder<TEntity> Wrap(EntityTypeBuilder<TEntity> entityTypeBuilder)Protected Overridable Function Wrap(entityTypeBuilder As EntityTypeBuilder(Of TEntity)) As ModelBuilderTest.TestEntityTypeBuilder(Of TEntity)

    Parameters

    Returns

Details

Assembly

Microsoft.EntityFrameworkCore.Tests.dll