Method Compare
Compare<T>(T?, T?)
Compares two entities and returns the comparison result.
public static EntityCompare.CompareResult Compare<T>(T? left, T? right) where T : NamedEntity
Parameters
left
TThe left entity.
right
TThe right entity.
Returns
- EntityCompare.CompareResult
The comparison result.
Type Parameters
T
The type of the entity.
Compare<T, K>(T?, T?)
Compares two collections of entities and returns the comparison results.
public static EntityCompare.CollectionResultBucket<K> Compare<T, K>(T? left, T? right) where T : EntityCollection<K> where K : NamedEntity
Parameters
left
TThe left entity collection.
right
TThe right entity collection.
Returns
- EntityCompare.CollectionResultBucket<K>
The comparison results.
Type Parameters
T
The type of the entity collection.
K
The type of the entity.
Compare<T, K>(T?, T?, Func<K, string>)
Compares two collections of entities and returns the comparison results.
public static EntityCompare.CollectionResultBucket<K> Compare<T, K>(T? left, T? right, Func<K, string> keySelector) where T : EntityCollection<K> where K : NamedEntity
Parameters
left
TThe left entity collection.
right
TThe right entity collection.
keySelector
Func<K, string>The function to select the key for comparison.
Returns
- EntityCompare.CollectionResultBucket<K>
The comparison results.
Type Parameters
T
The type of the entity collection.
K
The type of the entity.