mirror of
https://github.com/DapperLib/Dapper.git
synced 2026-10-17 05:12:13 +08:00
remove reject files
This commit is contained in:
@@ -1,38 +0,0 @@
|
||||
--- PerformanceTests.cs
|
||||
+++ PerformanceTests.cs
|
||||
@@ -1,13 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
+using System.Data.Linq;
|
||||
+using System.Data.SqlClient;
|
||||
+using System.Diagnostics;
|
||||
using System.Linq;
|
||||
-using System.Text;
|
||||
-using System.Data.SqlClient;
|
||||
-using SqlMapper.Linq2Sql;
|
||||
-using System.Data.Linq;
|
||||
-using System.Diagnostics;
|
||||
using Massive;
|
||||
using Simple.Data;
|
||||
+using SqlMapper.Linq2Sql;
|
||||
+using SqlMapper.NHibernate;
|
||||
|
||||
namespace SqlMapper
|
||||
{
|
||||
@@ -113,6 +113,16 @@
|
||||
var simpleDataDb5 = Database.OpenConnection(Program.connectionString);
|
||||
tests.Add(id => simpleDataDb5.Posts.FindAllById(id).ToList<Post>(), "Simple.Data FindAllBy ToList<Post>");
|
||||
|
||||
+ var nhSession1 = NHibernateHelper.OpenSession();
|
||||
+ tests.Add(id => nhSession1.CreateSQLQuery(@"select * from Posts where Id = :id")
|
||||
+ .SetInt32("id", id)
|
||||
+ .List(), "NHibernate SQL");
|
||||
+
|
||||
+ var nhSession2 = NHibernateHelper.OpenSession();
|
||||
+ tests.Add(id => nhSession2.CreateQuery(@"from Post as p where p.Id = :id")
|
||||
+ .SetInt32("id", id)
|
||||
+ .List(), "NHibernate HQL");
|
||||
+
|
||||
// HAND CODED
|
||||
var connection = Program.GetOpenConnection();
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
--- Program.cs
|
||||
+++ Program.cs
|
||||
@@ -32,7 +32,7 @@
|
||||
class Program
|
||||
{
|
||||
|
||||
- public static readonly string connectionString = @"Data Source=.\sql2k8r2;Initial Catalog=tempdb;Integrated Security=True";
|
||||
+ public static readonly string connectionString = @"Data Source=.;Initial Catalog=tempdb;Integrated Security=True";
|
||||
|
||||
public static SqlConnection GetOpenConnection()
|
||||
{
|
||||
@@ -1,44 +0,0 @@
|
||||
--- SqlMapper.csproj
|
||||
+++ SqlMapper.csproj
|
||||
@@ -35,6 +35,18 @@
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
+ <Reference Include="Iesi.Collections">
|
||||
+ <HintPath>Dependencies\Iesi.Collections.dll</HintPath>
|
||||
+ </Reference>
|
||||
+ <Reference Include="LinFu.DynamicProxy">
|
||||
+ <HintPath>Dependencies\LinFu.DynamicProxy.dll</HintPath>
|
||||
+ </Reference>
|
||||
+ <Reference Include="NHibernate">
|
||||
+ <HintPath>Dependencies\NHibernate.dll</HintPath>
|
||||
+ </Reference>
|
||||
+ <Reference Include="NHibernate.ByteCode.LinFu">
|
||||
+ <HintPath>Dependencies\NHibernate.ByteCode.LinFu.dll</HintPath>
|
||||
+ </Reference>
|
||||
<Reference Include="Simple.Data, Version=0.5.6.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>Dependencies\Simple.Data.dll</HintPath>
|
||||
@@ -72,6 +84,7 @@
|
||||
</Compile>
|
||||
<Compile Include="Linq2Sql\Post.cs" />
|
||||
<Compile Include="Massive\Massive.cs" />
|
||||
+ <Compile Include="NHibernate\NHibernateHelper.cs" />
|
||||
<Compile Include="PerformanceTests.cs" />
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
@@ -107,6 +120,14 @@
|
||||
<DependentUpon>DataClasses.dbml</DependentUpon>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
+ <ItemGroup>
|
||||
+ <EmbeddedResource Include="NHibernate\Post.hbm.xml" />
|
||||
+ </ItemGroup>
|
||||
+ <ItemGroup>
|
||||
+ <Content Include="NHibernate\hibernate.cfg.xml">
|
||||
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
+ </Content>
|
||||
+ </ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
Reference in New Issue
Block a user