Model​Builder​Non​Generic​Test.​Non​Generic​Test​Entity​Type​Builder<​TEntity> Model​Builder​Non​Generic​Test.​Non​Generic​Test​Entity​Type​Builder(​Of ​TEntity) Class

Definition

protected class NonGenericTestEntityTypeBuilder<TEntity> : ModelBuilderTest.TestEntityTypeBuilder<TEntity> where TEntity : classProtected Class NonGenericTestEntityTypeBuilder(Of TEntity As Class)
    Inherits ModelBuilderTest.TestEntityTypeBuilder(Of TEntity)
Type Parameters
TEntity
Inheritance
System.ObjectSystem.Object
ModelBuilderNonGenericTest.NonGenericTestEntityTypeBuilder<TEntity>ModelBuilderNonGenericTest.NonGenericTestEntityTypeBuilder(Of TEntity)

Inherited Members

System.Object

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

Constructors

NonGenericTestEntityTypeBuilder(EntityTypeBuilder) NonGenericTestEntityTypeBuilder(EntityTypeBuilder)

public NonGenericTestEntityTypeBuilder(EntityTypeBuilder entityTypeBuilder)Public Sub New(entityTypeBuilder As EntityTypeBuilder)
Parameters

Properties

EntityTypeBuilder EntityTypeBuilder

protected EntityTypeBuilder EntityTypeBuilder { get; }Protected ReadOnly Property EntityTypeBuilder As EntityTypeBuilder

Metadata Metadata

public override IMutableEntityType Metadata { get; }Public Overrides ReadOnly Property Metadata As IMutableEntityType
Overrides
Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.MetadataMicrosoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.Metadata

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<System.Func<TEntity, System.Object>> System.Linq.Expressions.Expression(Of System.Func(Of TEntity, System.Object))
Returns
Overrides
Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.HasAlternateKey(System.Linq.Expressions.Expression<System.Func<TEntity, System.Object>>)Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.HasAlternateKey(System.Linq.Expressions.Expression<System.Func<TEntity, System.Object>>)

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
Overrides
Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.HasAlternateKey(System.String[])Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.HasAlternateKey(System.String[])

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
Overrides
Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.HasAnnotation(System.String, System.Object)Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.HasAnnotation(System.String, System.Object)

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
Overrides
Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.HasBaseType(System.String)Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.HasBaseType(System.String)

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)
Type Parameters
TBaseEntity
Returns
Overrides
Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.HasBaseType<TBaseEntity>()Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.HasBaseType<TBaseEntity>()

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
Overrides
Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.HasChangeTrackingStrategy(Microsoft.EntityFrameworkCore.Metadata.ChangeTrackingStrategy)Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.HasChangeTrackingStrategy(Microsoft.EntityFrameworkCore.Metadata.ChangeTrackingStrategy)

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<System.Func<TEntity, System.Object>> System.Linq.Expressions.Expression(Of System.Func(Of TEntity, System.Object))
Returns
Overrides
Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.HasIndex(System.Linq.Expressions.Expression<System.Func<TEntity, System.Object>>)Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.HasIndex(System.Linq.Expressions.Expression<System.Func<TEntity, System.Object>>)

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
Overrides
Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.HasIndex(System.String[])Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.HasIndex(System.String[])

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<System.Func<TEntity, System.Object>> System.Linq.Expressions.Expression(Of System.Func(Of TEntity, System.Object))
Returns
Overrides
Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.HasKey(System.Linq.Expressions.Expression<System.Func<TEntity, System.Object>>)Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.HasKey(System.Linq.Expressions.Expression<System.Func<TEntity, System.Object>>)

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
Overrides
Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.HasKey(System.String[])Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.HasKey(System.String[])

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)
Type Parameters
TRelatedEntity
Parameters
collection
System.Linq.Expressions.Expression<System.Func<TEntity, System.Collections.Generic.IEnumerable<TRelatedEntity>>> System.Linq.Expressions.Expression(Of System.Func(Of TEntity, System.Collections.Generic.IEnumerable(Of TRelatedEntity)))
Returns
Overrides
Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.HasMany<TRelatedEntity>(System.Linq.Expressions.Expression<System.Func<TEntity, System.Collections.Generic.IEnumerable<TRelatedEntity>>>)Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.HasMany<TRelatedEntity>(System.Linq.Expressions.Expression<System.Func<TEntity, System.Collections.Generic.IEnumerable<TRelatedEntity>>>)

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)
Type Parameters
TRelatedEntity
Parameters
reference
System.Linq.Expressions.Expression<System.Func<TEntity, TRelatedEntity>> System.Linq.Expressions.Expression(Of System.Func(Of TEntity, TRelatedEntity))
Returns
Overrides
Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.HasOne<TRelatedEntity>(System.Linq.Expressions.Expression<System.Func<TEntity, TRelatedEntity>>)Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.HasOne<TRelatedEntity>(System.Linq.Expressions.Expression<System.Func<TEntity, TRelatedEntity>>)

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<System.Func<TEntity, System.Object>> System.Linq.Expressions.Expression(Of System.Func(Of TEntity, System.Object))
Returns
Overrides
Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.Ignore(System.Linq.Expressions.Expression<System.Func<TEntity, System.Object>>)Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.Ignore(System.Linq.Expressions.Expression<System.Func<TEntity, System.Object>>)

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
Overrides
Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.Ignore(System.String)Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.Ignore(System.String)

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)
Type Parameters
TProperty
Parameters
propertyExpression
System.Linq.Expressions.Expression<System.Func<TEntity, TProperty>> System.Linq.Expressions.Expression(Of System.Func(Of TEntity, TProperty))
Returns
Overrides
Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.Property<TProperty>(System.Linq.Expressions.Expression<System.Func<TEntity, TProperty>>)Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.Property<TProperty>(System.Linq.Expressions.Expression<System.Func<TEntity, TProperty>>)

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)
Type Parameters
TProperty
Parameters
propertyName
System.String System.String
Returns
Overrides
Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.Property<TProperty>(System.String)Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.Property<TProperty>(System.String)

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
Overrides
Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.UsePropertyAccessMode(Microsoft.EntityFrameworkCore.Metadata.PropertyAccessMode)Microsoft.EntityFrameworkCore.Tests.ModelBuilderTest.TestEntityTypeBuilder<TEntity>.UsePropertyAccessMode(Microsoft.EntityFrameworkCore.Metadata.PropertyAccessMode)

Wrap(EntityTypeBuilder) Wrap(EntityTypeBuilder)

protected virtual ModelBuilderNonGenericTest.NonGenericTestEntityTypeBuilder<TEntity> Wrap(EntityTypeBuilder entityTypeBuilder)Protected Overridable Function Wrap(entityTypeBuilder As EntityTypeBuilder) As ModelBuilderNonGenericTest.NonGenericTestEntityTypeBuilder(Of TEntity)
Parameters
Returns