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

Definition

public abstract class TestEntityTypeBuilder<TEntity>
    where TEntity : classPublic MustInherit Class TestEntityTypeBuilder(Of TEntity As Class)
Type Parameters
TEntity
Inheritance
System.ObjectSystem.Object
ModelBuilderTest.TestEntityTypeBuilder<TEntity>ModelBuilderTest.TestEntityTypeBuilder(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()

Properties

Metadata Metadata

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

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<System.Func<TEntity, System.Object>> System.Linq.Expressions.Expression(Of System.Func(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)
Type Parameters
TBaseEntity
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<System.Func<TEntity, System.Object>> System.Linq.Expressions.Expression(Of System.Func(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<System.Func<TEntity, System.Object>> System.Linq.Expressions.Expression(Of System.Func(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)
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

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)
Type Parameters
TRelatedEntity
Parameters
reference
System.Linq.Expressions.Expression<System.Func<TEntity, TRelatedEntity>> System.Linq.Expressions.Expression(Of System.Func(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<System.Func<TEntity, System.Object>> System.Linq.Expressions.Expression(Of System.Func(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)
Type Parameters
TProperty
Parameters
propertyExpression
System.Linq.Expressions.Expression<System.Func<TEntity, TProperty>> System.Linq.Expressions.Expression(Of System.Func(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)
Type Parameters
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