reverting fix (#142)

* Revert to _mapper assignment in constructor.

* reverting fix
This commit is contained in:
Hasan Manzak 2021-05-16 19:42:41 +03:00 committed by GitHub
parent cc9c2b0a9a
commit 7a48ba8d61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -399,7 +399,7 @@ namespace Sieve.Services
private (string, PropertyInfo) GetSieveProperty<TEntity>(bool canSortRequired, bool canFilterRequired, private (string, PropertyInfo) GetSieveProperty<TEntity>(bool canSortRequired, bool canFilterRequired,
string name) string name)
{ {
var property = Mapper.FindProperty<TEntity>(canSortRequired, canFilterRequired, name, var property = _mapper.FindProperty<TEntity>(canSortRequired, canFilterRequired, name,
Options.Value.CaseSensitive); Options.Value.CaseSensitive);
if (property.Item1 != null) if (property.Item1 != null)
{ {