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

Definition

public abstract class TestEntityTypeBuilder<TEntity>
    where TEntity : class
Public MustInherit Class TestEntityTypeBuilder(Of TEntity As Class)
Type Parameters
TEntity
Inheritance
System.ObjectSystem.Object
ModelBuilderTest.TestEntityTypeBuilder<TEntity>ModelBuilderTest.TestEntityTypeBuilder(Of TEntity)

Properties

Metadata Metadata

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

Methods

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

GetHashCode() GetHashCode()

Inherited from System.Object

GetType() GetType()

Inherited from System.Object

HasAlternateKey(Expression<>>) 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() HasBaseType(Of TBaseEntity)()

public abstract ModelBuilderTest.TestEntityTypeBuilder<TEntity> HasBaseType<TBaseEntity>()where TBaseEntity : class
Public 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<>>) 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<>>) 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(Expression<>>>) 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 : class
Public 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(Expression<>>) 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 : class
Public 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<>>) 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

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

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

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

ToString() ToString()

Inherited from System.Object

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