Skip to content

Commit

Permalink
Add ConvertChecked logic
Browse files Browse the repository at this point in the history
Add ConvertChecked logic
  • Loading branch information
zzzprojects committed Nov 10, 2017
1 parent 6635c67 commit b3bd51f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*.pfx
*.snk
Z.Lab/
Z.Lab.VB/

# Search Cache dump files
Cache-*-*-*-*-*
Expand Down
8 changes: 7 additions & 1 deletion src/EntityFramework.DynamicFilters.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26730.12
VisualStudioVersion = 15.0.27004.2005
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EntityFramework.DynamicFilters", "EntityFramework.DynamicFilters\EntityFramework.DynamicFilters.csproj", "{56E36AD1-E675-42F0-96CB-7F475E05E491}"
EndProject
Expand All @@ -19,6 +19,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DynamicFiltersTests", "Dyna
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Z.Lab", "Z.Lab\Z.Lab.csproj", "{72DAF92D-633B-44DE-A55C-F6CD10BE15F0}"
EndProject
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Z.Lab.VB", "Z.Lab.VB\Z.Lab.VB.vbproj", "{6D24EDDC-96C8-495F-B1D2-0BFB74654173}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -41,6 +43,10 @@ Global
{72DAF92D-633B-44DE-A55C-F6CD10BE15F0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{72DAF92D-633B-44DE-A55C-F6CD10BE15F0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{72DAF92D-633B-44DE-A55C-F6CD10BE15F0}.Release|Any CPU.Build.0 = Release|Any CPU
{6D24EDDC-96C8-495F-B1D2-0BFB74654173}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6D24EDDC-96C8-495F-B1D2-0BFB74654173}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6D24EDDC-96C8-495F-B1D2-0BFB74654173}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6D24EDDC-96C8-495F-B1D2-0BFB74654173}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,7 @@ protected override Expression VisitUnary(UnaryExpression node)
MapExpressionToDbExpression(expression, DbExpressionBuilder.Not(operandExpression));
break;
case ExpressionType.Convert:
case ExpressionType.ConvertChecked:
MapExpressionToDbExpression(expression, DbExpressionBuilder.CastTo(operandExpression, TypeUsageForPrimitiveType(expression.Type)));
break;
default:
Expand Down
6 changes: 3 additions & 3 deletions src/EntityFramework.DynamicFilters/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.0")]
[assembly: AssemblyFileVersion("3.0.0")]
[assembly: AssemblyInformationalVersion("3.0.0")]
[assembly: AssemblyVersion("3.0.1")]
[assembly: AssemblyFileVersion("3.0.1")]
[assembly: AssemblyInformationalVersion("3.0.1")]

0 comments on commit b3bd51f

Please sign in to comment.