diff --git a/Sieve/Exceptions/SieveException.cs b/Sieve/Exceptions/SieveException.cs new file mode 100644 index 0000000..a55fbb6 --- /dev/null +++ b/Sieve/Exceptions/SieveException.cs @@ -0,0 +1,10 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace Sieve.Exceptions +{ + public class SieveException : Exception + { + } +} diff --git a/Sieve/Exceptions/SieveIncompatibleMethodException.cs b/Sieve/Exceptions/SieveIncompatibleMethodException.cs index 4aefb4d..8557a4e 100644 --- a/Sieve/Exceptions/SieveIncompatibleMethodException.cs +++ b/Sieve/Exceptions/SieveIncompatibleMethodException.cs @@ -4,7 +4,7 @@ using System.Text; namespace Sieve.Exceptions { - public class SieveIncompatibleMethodException : Exception + public class SieveIncompatibleMethodException : SieveException { public string MethodName { get; protected set; } public Type ExpectedType { get; protected set; } diff --git a/Sieve/Exceptions/SieveMethodNotFoundException.cs b/Sieve/Exceptions/SieveMethodNotFoundException.cs index ea9c345..28e2346 100644 --- a/Sieve/Exceptions/SieveMethodNotFoundException.cs +++ b/Sieve/Exceptions/SieveMethodNotFoundException.cs @@ -4,7 +4,7 @@ using System.Text; namespace Sieve.Exceptions { - public class SieveMethodNotFoundException : Exception + public class SieveMethodNotFoundException : SieveException { public string MethodName { get; protected set; } diff --git a/Sieve/Services/SieveProcessor.cs b/Sieve/Services/SieveProcessor.cs index 7e8d756..3a6b7f7 100644 --- a/Sieve/Services/SieveProcessor.cs +++ b/Sieve/Services/SieveProcessor.cs @@ -115,7 +115,6 @@ namespace Sieve.Services converter.ConvertFrom(filterTerm.Value) : Convert.ChangeType(filterTerm.Value, property.PropertyType)); - dynamic propertyValue = Expression.PropertyOrField(parameter, property.Name); if (filterTerm.OperatorIsCaseInsensitive) diff --git a/publishing_to_nuget.md b/publishing_to_nuget.md index ee51a88..085bf56 100644 --- a/publishing_to_nuget.md +++ b/publishing_to_nuget.md @@ -1,6 +1,6 @@ ### 1. Pack: ``` -dotnet pack Sieve.csproj -c Release -o . /p:PackageVersion=1.3.9 +dotnet pack Sieve.csproj -c Release -o . /p:PackageVersion=1.3.92 ``` Don't forget to change version since nuget packages are immutable (add one to the nuget current). @@ -13,7 +13,7 @@ Also don't forget updaing `releaseNotes` in nuspec. ### 3. Publish: ``` -nuget push Sieve.1.3.9.nupkg API_KEY -Source https://api.nuget.org/v3/index.json +nuget push Sieve.1.3.92.nupkg API_KEY -Source https://api.nuget.org/v3/index.json ``` Replace API_KEY with one you get from nuget's website. Also don't forget to replace corresponding version.