ModelValidatorTest ModelValidatorTest Class

Syntax

Declaration

public abstract class ModelValidatorTestPublic MustInherit Class ModelValidatorTest

Inheritance Hierarchy

  • System.Object
    System.Object
  • ModelValidatorTest
    ModelValidatorTest

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

Methods summary

Methods

  • CreateForeignKey(EntityType, IReadOnlyList<Property>, Key)
    CreateForeignKey(EntityType, IReadOnlyList(Of Property), Key)
    protected ForeignKey CreateForeignKey(EntityType dependEntityType, IReadOnlyList<Property> dependentProperties, Key principalKey)Protected Function CreateForeignKey(dependEntityType As EntityType, dependentProperties As IReadOnlyList(Of  Property), principalKey As Key) As ForeignKey

    Parameters

    Returns

  • CreateForeignKey(Key, Key)
    CreateForeignKey(Key, Key)
    protected ForeignKey CreateForeignKey(Key dependentKey, Key principalKey)Protected Function CreateForeignKey(dependentKey As Key, principalKey As Key) As ForeignKey

    Parameters

    Returns

  • CreateKey(EntityType, Int32, Int32)
    CreateKey(EntityType, Int32, Int32)
    protected Key CreateKey(EntityType entityType, int startingPropertyIndex = -1, int propertyCount = 1)Protected Function CreateKey(entityType As EntityType, startingPropertyIndex As Integer = -1, propertyCount As Integer = 1) As Key

    Parameters

    • entityType
    • startingPropertyIndex
      System.Int32
      System.Int32
    • propertyCount
      System.Int32
      System.Int32

    Returns

  • CreateModelValidator()
    CreateModelValidator()
    protected abstract ModelValidator CreateModelValidator()Protected MustOverride Function CreateModelValidator As ModelValidator

    Returns

  • Detects_a_null_primary_key()
    Detects_a_null_primary_key()
    public virtual void Detects_a_null_primary_key()Public Overridable Sub Detects_a_null_primary_key
  • Detects_abstract_leaf_type()
    Detects_abstract_leaf_type()
    public virtual void Detects_abstract_leaf_type()Public Overridable Sub Detects_abstract_leaf_type
  • Detects_base_type_not_set()
    Detects_base_type_not_set()
    public virtual void Detects_base_type_not_set()Public Overridable Sub Detects_base_type_not_set
  • Detects_changed_only_notifying_entities(ChangeTrackingStrategy)
    Detects_changed_only_notifying_entities(ChangeTrackingStrategy)
    public virtual void Detects_changed_only_notifying_entities(ChangeTrackingStrategy changeTrackingStrategy)Public Overridable Sub Detects_changed_only_notifying_entities(changeTrackingStrategy As ChangeTrackingStrategy)

    Parameters

  • Detects_generic_leaf_type()
    Detects_generic_leaf_type()
    public virtual void Detects_generic_leaf_type()Public Overridable Sub Detects_generic_leaf_type
  • Detects_non_notifying_entities(ChangeTrackingStrategy)
    Detects_non_notifying_entities(ChangeTrackingStrategy)
    public virtual void Detects_non_notifying_entities(ChangeTrackingStrategy changeTrackingStrategy)Public Overridable Sub Detects_non_notifying_entities(changeTrackingStrategy As ChangeTrackingStrategy)

    Parameters

  • Detects_shadow_entities()
    Detects_shadow_entities()
    public virtual void Detects_shadow_entities()Public Overridable Sub Detects_shadow_entities
  • Detects_shadow_key_referenced_by_foreign_key()
    Detects_shadow_key_referenced_by_foreign_key()
    public virtual void Detects_shadow_key_referenced_by_foreign_key()Public Overridable Sub Detects_shadow_key_referenced_by_foreign_key
  • Detects_shadow_key_referenced_by_foreign_key_by_convention()
    Detects_shadow_key_referenced_by_foreign_key_by_convention()
    public virtual void Detects_shadow_key_referenced_by_foreign_key_by_convention()Public Overridable Sub Detects_shadow_key_referenced_by_foreign_key_by_convention
  • Detects_shadow_keys()
    Detects_shadow_keys()
    public virtual void Detects_shadow_keys()Public Overridable Sub Detects_shadow_keys
  • Detects_shadow_keys_by_convention()
    Detects_shadow_keys_by_convention()
    public virtual void Detects_shadow_keys_by_convention()Public Overridable Sub Detects_shadow_keys_by_convention
  • Pases_on_correct_inheritance()
    Pases_on_correct_inheritance()
    public virtual void Pases_on_correct_inheritance()Public Overridable Sub Pases_on_correct_inheritance
  • Pases_on_diamond_path_to_root_principal_property()
    Pases_on_diamond_path_to_root_principal_property()
    public virtual void Pases_on_diamond_path_to_root_principal_property()Public Overridable Sub Pases_on_diamond_path_to_root_principal_property
  • Pases_on_double_reference_to_root_principal_property()
    Pases_on_double_reference_to_root_principal_property()
    public virtual void Pases_on_double_reference_to_root_principal_property()Public Overridable Sub Pases_on_double_reference_to_root_principal_property
  • Passes_for_changed_only_entities_with_snapshot_or_changed_only_tracking(ChangeTrackingStrategy)
    Passes_for_changed_only_entities_with_snapshot_or_changed_only_tracking(ChangeTrackingStrategy)
    public virtual void Passes_for_changed_only_entities_with_snapshot_or_changed_only_tracking(ChangeTrackingStrategy changeTrackingStrategy)Public Overridable Sub Passes_for_changed_only_entities_with_snapshot_or_changed_only_tracking(changeTrackingStrategy As ChangeTrackingStrategy)

    Parameters

  • Passes_for_fully_notifying_entities(ChangeTrackingStrategy)
    Passes_for_fully_notifying_entities(ChangeTrackingStrategy)
    public virtual void Passes_for_fully_notifying_entities(ChangeTrackingStrategy changeTrackingStrategy)Public Overridable Sub Passes_for_fully_notifying_entities(changeTrackingStrategy As ChangeTrackingStrategy)

    Parameters

  • Passes_for_non_notifying_entities_with_snapshot_tracking()
    Passes_for_non_notifying_entities_with_snapshot_tracking()
    public virtual void Passes_for_non_notifying_entities_with_snapshot_tracking()Public Overridable Sub Passes_for_non_notifying_entities_with_snapshot_tracking
  • Passes_on_escapable_foreign_key_cycles()
    Passes_on_escapable_foreign_key_cycles()
    public virtual void Passes_on_escapable_foreign_key_cycles()Public Overridable Sub Passes_on_escapable_foreign_key_cycles
  • Passes_on_escapable_foreign_key_cycles_not_starting_at_hub()
    Passes_on_escapable_foreign_key_cycles_not_starting_at_hub()
    public virtual void Passes_on_escapable_foreign_key_cycles_not_starting_at_hub()Public Overridable Sub Passes_on_escapable_foreign_key_cycles_not_starting_at_hub
  • Passes_on_foreign_key_cycle_with_one_GenerateOnAdd()
    Passes_on_foreign_key_cycle_with_one_GenerateOnAdd()
    public virtual void Passes_on_foreign_key_cycle_with_one_GenerateOnAdd()Public Overridable Sub Passes_on_foreign_key_cycle_with_one_GenerateOnAdd
  • SetBaseType(EntityType, EntityType)
    SetBaseType(EntityType, EntityType)
    protected virtual void SetBaseType(EntityType entityType, EntityType baseEntityType)Protected Overridable Sub SetBaseType(entityType As EntityType, baseEntityType As EntityType)

    Parameters

  • SetPrimaryKey(EntityType)
    SetPrimaryKey(EntityType)
    public void SetPrimaryKey(EntityType entityType)Public Sub SetPrimaryKey(entityType As EntityType)

    Parameters

  • Validate(IModel)
    Validate(IModel)
    protected virtual void Validate(IModel model)Protected Overridable Sub Validate(model As IModel)

    Parameters

  • VerifyError(String, IModel)
    VerifyError(String, IModel)
    protected abstract void VerifyError(string expectedMessage, IModel model)Protected MustOverride Sub VerifyError(expectedMessage As String, model As IModel)

    Parameters

    • expectedMessage
      System.String
      System.String
    • model
  • VerifyWarning(String, IModel)
    VerifyWarning(String, IModel)
    protected abstract void VerifyWarning(string expectedMessage, IModel model)Protected MustOverride Sub VerifyWarning(expectedMessage As String, model As IModel)

    Parameters

    • expectedMessage
      System.String
      System.String
    • model

Details

Assembly

Microsoft.EntityFrameworkCore.Tests.dll