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
leftTThe left entity.
rightTThe right entity.
Returns
- EntityCompare.CompareResult
The comparison result.
Type Parameters
TThe 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
leftTThe left entity collection.
rightTThe right entity collection.
Returns
- EntityCompare.CollectionResultBucket<K>
The comparison results.
Type Parameters
TThe type of the entity collection.
KThe 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
leftTThe left entity collection.
rightTThe right entity collection.
keySelectorFunc<K, string>The function to select the key for comparison.
Returns
- EntityCompare.CollectionResultBucket<K>
The comparison results.
Type Parameters
TThe type of the entity collection.
KThe type of the entity.