Skip to content

Commit

Permalink
bool
Browse files Browse the repository at this point in the history
  • Loading branch information
soul-soft committed Aug 17, 2019
1 parent 44386c2 commit f3d1b4f
Show file tree
Hide file tree
Showing 62 changed files with 331 additions and 183 deletions.
Binary file not shown.
Binary file removed src/Dapper.Linq/.vs/Dapper.Linq/v16/.suo
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion src/Dapper.Linq/Dapper.Linq/Dapper.Linq.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFrameworks>net45;netstandard2.0</TargetFrameworks>
<Version>1.0.0.0</Version>
<Version>1.0.0.1</Version>
<Description>dapper,mysql,sqlserver,sqlite,linq to sql,subquery,windows function</Description>
<Authors>花间岛</Authors>
<PackageProjectUrl>https://github.com/1448376744/Dapper.Linq</PackageProjectUrl>
Expand Down
7 changes: 1 addition & 6 deletions src/Dapper.Linq/Dapper.Linq/ExpressionUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,7 @@ protected override Expression VisitNew(NewExpression node)
}
protected override Expression VisitUnary(UnaryExpression node)
{
if ((node.Operand is MemberExpression mex) && (mex.Member is System.Reflection.PropertyInfo pif) && pif.PropertyType == typeof(bool))
{
var columnName = EntityUtil.GetColumn(mex.Expression.Type, f => f.CSharpName == mex.Member.Name)?.ColumnName ?? mex.Member.Name;
_build.AppendFormat("({0} = {1})", columnName, node.NodeType != ExpressionType.Not ? 1 : 0);
}
else if (node.NodeType == ExpressionType.Not)
if (node.NodeType == ExpressionType.Not)
{
_build.AppendFormat("{0} ", Operator.GetOperator(ExpressionType.Not));
Visit(node.Operand);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": 1,
"dgSpecHash": "6Cp8HhgnBJcqYYEMpYsOamZowWgnE1F55tlcMurNLnERGMfFvOQ6xQ+xKOo4gdQxPx87QSOe7epfxuiVjfUhQg==",
"dgSpecHash": "ZCFACTvUFyY5NewUAvR2dKa4IcAlvrtD4T4fRJJ/It4uIc7BzUquM2cZLgH32yeN2aezKeOE/5kTPs5z0acFbg==",
"success": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\obj\project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\14483\.nuget\packages\;C:\Program Files\dotnet\sdk\NuGetFallbackFolder</NuGetPackageFolders>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\chaeyeon\.nuget\packages\;C:\Program Files\dotnet\sdk\NuGetFallbackFolder</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.1.0</NuGetToolVersion>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">4.9.0</NuGetToolVersion>
</PropertyGroup>
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
Expand Down
29 changes: 29 additions & 0 deletions src/Dapper.Linq/Dapper.Linq/obj/Debug/Dapper.Linq.1.0.0.1.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>Dapper.Linq</id>
<version>1.0.0.1</version>
<authors>花间岛</authors>
<owners>花间岛</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<license type="expression">Apache-2.0</license>
<licenseUrl>https://licenses.nuget.org/Apache-2.0</licenseUrl>
<projectUrl>https://github.com/1448376744/Dapper.Linq</projectUrl>
<description>dapper,mysql,sqlserver,sqlite,linq to sql,subquery,windows function</description>
<copyright>花间岛</copyright>
<tags>dapper,orm,linq to sql</tags>
<repository type="github" url="https://github.com/1448376744/Dapper.Linq" />
<dependencies>
<group targetFramework=".NETFramework4.5">
<dependency id="Dapper" version="1.42.0" exclude="Build,Analyzers" />
</group>
<group targetFramework=".NETStandard2.0">
<dependency id="Dapper" version="1.60.6" exclude="Build,Analyzers" />
</group>
</dependencies>
</metadata>
<files>
<file src="C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\bin\Debug\net45\Dapper.Linq.dll" target="lib\net45\Dapper.Linq.dll" />
<file src="C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\bin\Debug\netstandard2.0\Dapper.Linq.dll" target="lib\netstandard2.0\Dapper.Linq.dll" />
</files>
</package>
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyCopyrightAttribute("花间岛")]
[assembly: System.Reflection.AssemblyDescriptionAttribute("dapper,mysql,sqlserver,sqlite,linq to sql,subquery,windows function")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.1")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0.1")]
[assembly: System.Reflection.AssemblyProductAttribute("Dapper.Linq")]
[assembly: System.Reflection.AssemblyTitleAttribute("Dapper.Linq")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.1")]

// 由 MSBuild WriteCodeFragment 类生成。

Original file line number Diff line number Diff line change
@@ -1 +1 @@
367cd9c8843751385780b96cd6ff24b080c55668
8dfbb62462b76d06ad02607f0738eec89b46f482
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5d700262ecb61fd953bf3b090e0ebf5b3377b2c2
da978d060c4f67ec49267debe31b383cf81a77c3
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\bin\Debug\net45\Dapper.Linq.dll
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\bin\Debug\net45\Dapper.Linq.pdb
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\bin\Debug\net45\Dapper.dll
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\obj\Debug\net45\Dapper.Linq.csprojAssemblyReference.cache
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\obj\Debug\net45\Dapper.Linq.csproj.CoreCompileInputs.cache
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\obj\Debug\net45\Dapper.Linq.AssemblyInfoInputs.cache
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\obj\Debug\net45\Dapper.Linq.AssemblyInfo.cs
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\obj\Debug\net45\Dapper.Linq.csproj.CopyComplete
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\obj\Debug\net45\Dapper.Linq.dll
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\obj\Debug\net45\Dapper.Linq.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyCopyrightAttribute("花间岛")]
[assembly: System.Reflection.AssemblyDescriptionAttribute("dapper,mysql,sqlserver,sqlite,linq to sql,subquery,windows function")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.1")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0.1")]
[assembly: System.Reflection.AssemblyProductAttribute("Dapper.Linq")]
[assembly: System.Reflection.AssemblyTitleAttribute("Dapper.Linq")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.1")]

// 由 MSBuild WriteCodeFragment 类生成。

Original file line number Diff line number Diff line change
@@ -1 +1 @@
367cd9c8843751385780b96cd6ff24b080c55668
8dfbb62462b76d06ad02607f0738eec89b46f482
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
580890392753f8b3a24653aae66fa4f7c40af4b7
83fc6158242f69ec4ebbbbb9fc7726b773e2875f
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\bin\Debug\netstandard2.0\Dapper.Linq.deps.json
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\bin\Debug\netstandard2.0\Dapper.Linq.dll
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\bin\Debug\netstandard2.0\Dapper.Linq.pdb
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\obj\Debug\netstandard2.0\Dapper.Linq.csprojAssemblyReference.cache
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\obj\Debug\netstandard2.0\Dapper.Linq.csproj.CoreCompileInputs.cache
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\obj\Debug\netstandard2.0\Dapper.Linq.AssemblyInfoInputs.cache
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\obj\Debug\netstandard2.0\Dapper.Linq.AssemblyInfo.cs
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\obj\Debug\netstandard2.0\Dapper.Linq.dll
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\obj\Debug\netstandard2.0\Dapper.Linq.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
29 changes: 29 additions & 0 deletions src/Dapper.Linq/Dapper.Linq/obj/Release/Dapper.Linq.1.0.0.1.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>Dapper.Linq</id>
<version>1.0.0.1</version>
<authors>花间岛</authors>
<owners>花间岛</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<license type="expression">Apache-2.0</license>
<licenseUrl>https://licenses.nuget.org/Apache-2.0</licenseUrl>
<projectUrl>https://github.com/1448376744/Dapper.Linq</projectUrl>
<description>dapper,mysql,sqlserver,sqlite,linq to sql,subquery,windows function</description>
<copyright>花间岛</copyright>
<tags>dapper,orm,linq to sql</tags>
<repository type="github" url="https://github.com/1448376744/Dapper.Linq" />
<dependencies>
<group targetFramework=".NETFramework4.5">
<dependency id="Dapper" version="1.42.0" exclude="Build,Analyzers" />
</group>
<group targetFramework=".NETStandard2.0">
<dependency id="Dapper" version="1.60.6" exclude="Build,Analyzers" />
</group>
</dependencies>
</metadata>
<files>
<file src="C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\bin\Release\net45\Dapper.Linq.dll" target="lib\net45\Dapper.Linq.dll" />
<file src="C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\bin\Release\netstandard2.0\Dapper.Linq.dll" target="lib\netstandard2.0\Dapper.Linq.dll" />
</files>
</package>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Reflection;

[assembly: System.Reflection.AssemblyCompanyAttribute("mammothcode")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
[assembly: System.Reflection.AssemblyCopyrightAttribute("花间岛")]
[assembly: System.Reflection.AssemblyDescriptionAttribute("dapper,mysql,sqlserver,sqlite,linq to sql,subquery,windows function")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.1")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0.1")]
[assembly: System.Reflection.AssemblyProductAttribute("Dapper.Linq")]
[assembly: System.Reflection.AssemblyTitleAttribute("Dapper.Linq")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.1")]

// 由 MSBuild WriteCodeFragment 类生成。

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
32f5162e8c363ef618b322f13480e58fbf8c809d
Binary file not shown.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
da978d060c4f67ec49267debe31b383cf81a77c3
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\bin\Release\net45\Dapper.Linq.dll
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\bin\Release\net45\Dapper.Linq.pdb
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\bin\Release\net45\Dapper.dll
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\obj\Release\net45\Dapper.Linq.csproj.CoreCompileInputs.cache
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\obj\Release\net45\Dapper.Linq.AssemblyInfoInputs.cache
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\obj\Release\net45\Dapper.Linq.AssemblyInfo.cs
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\obj\Release\net45\Dapper.Linq.csproj.CopyComplete
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\obj\Release\net45\Dapper.Linq.dll
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\obj\Release\net45\Dapper.Linq.pdb
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Reflection;

[assembly: System.Reflection.AssemblyCompanyAttribute("mammothcode")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
[assembly: System.Reflection.AssemblyCopyrightAttribute("花间岛")]
[assembly: System.Reflection.AssemblyDescriptionAttribute("dapper,mysql,sqlserver,sqlite,linq to sql,subquery,windows function")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.1")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0.1")]
[assembly: System.Reflection.AssemblyProductAttribute("Dapper.Linq")]
[assembly: System.Reflection.AssemblyTitleAttribute("Dapper.Linq")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.1")]

// 由 MSBuild WriteCodeFragment 类生成。

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
32f5162e8c363ef618b322f13480e58fbf8c809d
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
83fc6158242f69ec4ebbbbb9fc7726b773e2875f
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\bin\Release\netstandard2.0\Dapper.Linq.deps.json
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\bin\Release\netstandard2.0\Dapper.Linq.dll
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\bin\Release\netstandard2.0\Dapper.Linq.pdb
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\obj\Release\netstandard2.0\Dapper.Linq.csprojAssemblyReference.cache
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\obj\Release\netstandard2.0\Dapper.Linq.csproj.CoreCompileInputs.cache
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\obj\Release\netstandard2.0\Dapper.Linq.AssemblyInfoInputs.cache
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\obj\Release\netstandard2.0\Dapper.Linq.AssemblyInfo.cs
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\obj\Release\netstandard2.0\Dapper.Linq.dll
C:\Dapper.Linq\src\Dapper.Linq\Dapper.Linq\obj\Release\netstandard2.0\Dapper.Linq.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit f3d1b4f

Please sign in to comment.