Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
Dapper
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
Dapper
Commits
b06e62f3
Commit
b06e62f3
authored
Apr 06, 2011
by
Sam Saffron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove reject files
parent
56abcad5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
93 deletions
+0
-93
PerformanceTests.cs.rej
PerformanceTests.cs.rej
+0
-38
Program.cs.rej
Program.cs.rej
+0
-11
SqlMapper.csproj.rej
SqlMapper.csproj.rej
+0
-44
No files found.
PerformanceTests.cs.rej
deleted
100644 → 0
View file @
56abcad5
--- 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();
Program.cs.rej
deleted
100644 → 0
View file @
56abcad5
--- 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()
{
SqlMapper.csproj.rej
deleted
100644 → 0
View file @
56abcad5
--- 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.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment