Interface ITableResultComparer
This enables an implementation to alter the table/columns compared when running the CompareDatabaseParameters task (which compares the current records for the root account across all entities in the system)
Implementing this interface for an entity type allows overriding the comparrison behaviour
Namespace: LemonEdge.API.Core.Migrations.Testing
Assembly: LemonEdge.API.Core.Migrations.dll
Syntax
public interface ITableResultComparer
Properties
CompareTable
True indicates the table should be compared, false indicates it should be skipped
Declaration
bool CompareTable { get; }
Property Value
Type | Description |
---|---|
bool |
CompareType
The type of entity descriptor to change the default comparrison behaviour of in the CompareDatabaseParameters task
Declaration
EntityDescriptor CompareType { get; }
Property Value
Type | Description |
---|---|
EntityDescriptor |
OverrideKeys
Returns optional columns to use as the key fields for comparrisons
Declaration
string[] OverrideKeys { get; }
Property Value
Type | Description |
---|---|
string[] |
PropertiesToIgnore
A list of columns that should not be included in any comparrison.
This can be used to skip random fields that are not important for a comparrison. For instance the HashedPassword is skipped in internal testing as it contains the ID as part of the salt for the hash which is always different
Declaration
string[] PropertiesToIgnore { get; }
Property Value
Type | Description |
---|---|
string[] |
TableComparisonFilter
Return null to compare all data in the table as normal.
Return a valid QueryableExecuter to alter the comparrison to just a subset of records that should be compared by default
Declaration
QueryableFilter TableComparisonFilter { get; }
Property Value
Type | Description |
---|---|
QueryableFilter |