ModelBuilderTest.TestReferenceCollectionBuilder<TEntity, TRelatedEntity> ModelBuilderTest.TestReferenceCollectionBuilder(Of TEntity, TRelatedEntity) Class

Definition

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

Properties

Metadata Metadata

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

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

HasAnnotation(String, Object) HasAnnotation(String, Object)

public abstract ModelBuilderTest.TestReferenceCollectionBuilder<TEntity, TRelatedEntity> HasAnnotation(string annotation, object value)
Public MustOverride Function HasAnnotation(annotation As String, value As Object) As ModelBuilderTest.TestReferenceCollectionBuilder(Of TEntity, TRelatedEntity)
Parameters
annotation
System.String System.String
value
System.Object System.Object
Returns

HasForeignKey(Expression<>>) HasForeignKey(Expression(Of Func(Of TRelatedEntity, Object)))

public abstract ModelBuilderTest.TestReferenceCollectionBuilder<TEntity, TRelatedEntity> HasForeignKey(Expression<Func<TRelatedEntity, object>> foreignKeyExpression)
Public MustOverride Function HasForeignKey(foreignKeyExpression As Expression(Of Func(Of TRelatedEntity, Object))) As ModelBuilderTest.TestReferenceCollectionBuilder(Of TEntity, TRelatedEntity)
Parameters
foreignKeyExpression
System.Linq.Expressions.Expression<System.Func<TRelatedEntity, System.Object>> System.Linq.Expressions.Expression(Of System.Func(Of TRelatedEntity, System.Object))
Returns

HasForeignKey(String[]) HasForeignKey(String())

public abstract ModelBuilderTest.TestReferenceCollectionBuilder<TEntity, TRelatedEntity> HasForeignKey(params string[] foreignKeyPropertyNames)
Public MustOverride Function HasForeignKey(ParamArray foreignKeyPropertyNames As String()) As ModelBuilderTest.TestReferenceCollectionBuilder(Of TEntity, TRelatedEntity)
Parameters
foreignKeyPropertyNames
System.String[] System.String()
Returns

HasPrincipalKey(Expression<>>) HasPrincipalKey(Expression(Of Func(Of TEntity, Object)))

public abstract ModelBuilderTest.TestReferenceCollectionBuilder<TEntity, TRelatedEntity> HasPrincipalKey(Expression<Func<TEntity, object>> keyExpression)
Public MustOverride Function HasPrincipalKey(keyExpression As Expression(Of Func(Of TEntity, Object))) As ModelBuilderTest.TestReferenceCollectionBuilder(Of TEntity, TRelatedEntity)
Parameters
keyExpression
System.Linq.Expressions.Expression<System.Func<TEntity, System.Object>> System.Linq.Expressions.Expression(Of System.Func(Of TEntity, System.Object))
Returns

HasPrincipalKey(String[]) HasPrincipalKey(String())

public abstract ModelBuilderTest.TestReferenceCollectionBuilder<TEntity, TRelatedEntity> HasPrincipalKey(params string[] keyPropertyNames)
Public MustOverride Function HasPrincipalKey(ParamArray keyPropertyNames As String()) As ModelBuilderTest.TestReferenceCollectionBuilder(Of TEntity, TRelatedEntity)
Parameters
keyPropertyNames
System.String[] System.String()
Returns

IsRequired(Boolean) IsRequired(Boolean)

public abstract ModelBuilderTest.TestReferenceCollectionBuilder<TEntity, TRelatedEntity> IsRequired(bool isRequired = true)
Public MustOverride Function IsRequired(isRequired As Boolean = True) As ModelBuilderTest.TestReferenceCollectionBuilder(Of TEntity, TRelatedEntity)
Parameters
isRequired
System.Boolean System.Boolean
Returns

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

OnDelete(DeleteBehavior) OnDelete(DeleteBehavior)

public abstract ModelBuilderTest.TestReferenceCollectionBuilder<TEntity, TRelatedEntity> OnDelete(DeleteBehavior deleteBehavior)
Public MustOverride Function OnDelete(deleteBehavior As DeleteBehavior) As ModelBuilderTest.TestReferenceCollectionBuilder(Of TEntity, TRelatedEntity)
Parameters
Returns

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

Inherited from System.Object

ToString() ToString()

Inherited from System.Object