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
f7b9d73e
Commit
f7b9d73e
authored
Apr 06, 2011
by
mythz@io.lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ServiceStack.OrmLite to ORM PerformanceTests.cs
parent
c1319217
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
0 deletions
+33
-0
ServiceStack.Common.dll
OrmLite/ServiceStack.Common.dll
+0
-0
ServiceStack.Interfaces.dll
OrmLite/ServiceStack.Interfaces.dll
+0
-0
ServiceStack.OrmLite.SqlServer.dll
OrmLite/ServiceStack.OrmLite.SqlServer.dll
+0
-0
ServiceStack.OrmLite.dll
OrmLite/ServiceStack.OrmLite.dll
+0
-0
ServiceStack.Text.dll
OrmLite/ServiceStack.Text.dll
+0
-0
PerformanceTests.cs
PerformanceTests.cs
+8
-0
SqlMapper.csproj
SqlMapper.csproj
+25
-0
No files found.
OrmLite/ServiceStack.Common.dll
0 → 100644
View file @
f7b9d73e
File added
OrmLite/ServiceStack.Interfaces.dll
0 → 100644
View file @
f7b9d73e
File added
OrmLite/ServiceStack.OrmLite.SqlServer.dll
0 → 100644
View file @
f7b9d73e
File added
OrmLite/ServiceStack.OrmLite.dll
0 → 100644
View file @
f7b9d73e
File added
OrmLite/ServiceStack.Text.dll
0 → 100644
View file @
f7b9d73e
File added
PerformanceTests.cs
View file @
f7b9d73e
using
System
;
using
System.Collections.Generic
;
using
System.Data
;
using
System.Linq
;
using
System.Data.SqlClient
;
using
BLToolkit.Data
;
using
ServiceStack.OrmLite
;
using
ServiceStack.OrmLite.SqlServer
;
using
SqlMapper.Linq2Sql
;
using
System.Data.Linq
;
using
System.Diagnostics
;
...
...
@@ -134,6 +137,11 @@ public void Run(int iterations)
var
db1
=
new
DbManager
(
Program
.
GetOpenConnection
());
tests
.
Add
(
id
=>
db1
.
SetCommand
(
"select * from Posts where Id = @id"
,
db1
.
Parameter
(
"id"
,
id
)).
ExecuteList
<
Post
>(),
"BLToolkit"
);
//ServiceStack.OrmLite Provider:
OrmLiteConfig
.
DialectProvider
=
SqlServerOrmLiteDialectProvider
.
Instance
;
//Using SQL Server
IDbCommand
ormLiteCmd
=
Program
.
GetOpenConnection
().
CreateCommand
();
tests
.
Add
(
id
=>
ormLiteCmd
.
Select
<
Post
>(
"select * from Posts where Id = {0}"
,
id
),
"ServiceStack.OrmLite SQL Query"
);
// HAND CODED
...
...
SqlMapper.csproj
View file @
f7b9d73e
...
...
@@ -50,6 +50,26 @@
<Reference
Include=
"NHibernate.ByteCode.LinFu"
>
<HintPath>
NHibernate\NHibernate.ByteCode.LinFu.dll
</HintPath>
</Reference>
<Reference
Include=
"ServiceStack.Common, Version=1.0.4110.36238, Culture=neutral, processorArchitecture=MSIL"
>
<SpecificVersion>
False
</SpecificVersion>
<HintPath>
OrmLite\ServiceStack.Common.dll
</HintPath>
</Reference>
<Reference
Include=
"ServiceStack.Interfaces, Version=1.0.4110.36238, Culture=neutral, processorArchitecture=MSIL"
>
<SpecificVersion>
False
</SpecificVersion>
<HintPath>
OrmLite\ServiceStack.Interfaces.dll
</HintPath>
</Reference>
<Reference
Include=
"ServiceStack.OrmLite, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"
>
<SpecificVersion>
False
</SpecificVersion>
<HintPath>
OrmLite\ServiceStack.OrmLite.dll
</HintPath>
</Reference>
<Reference
Include=
"ServiceStack.OrmLite.SqlServer, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"
>
<SpecificVersion>
False
</SpecificVersion>
<HintPath>
OrmLite\ServiceStack.OrmLite.SqlServer.dll
</HintPath>
</Reference>
<Reference
Include=
"ServiceStack.Text, Version=2.0.8.8681, Culture=neutral, processorArchitecture=MSIL"
>
<SpecificVersion>
False
</SpecificVersion>
<HintPath>
OrmLite\ServiceStack.Text.dll
</HintPath>
</Reference>
<Reference
Include=
"SubSonic.Core"
>
<HintPath>
SubSonic\SubSonic.Core.dll
</HintPath>
</Reference>
...
...
@@ -158,6 +178,11 @@
<ItemGroup>
<Content
Include=
"NHibernate\hibernate.cfg.xml"
/>
<Content
Include=
"NHibernate\Post.hbm.xml"
/>
<Content
Include=
"OrmLite\ServiceStack.Common.dll"
/>
<Content
Include=
"OrmLite\ServiceStack.Interfaces.dll"
/>
<Content
Include=
"OrmLite\ServiceStack.OrmLite.dll"
/>
<Content
Include=
"OrmLite\ServiceStack.OrmLite.SqlServer.dll"
/>
<Content
Include=
"OrmLite\ServiceStack.Text.dll"
/>
</ItemGroup>
<ItemGroup>
<Folder
Include=
"bltoolkit\"
/>
...
...
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