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
dbff11c6
Commit
dbff11c6
authored
Apr 28, 2011
by
Ryan Riley
Browse files
Options
Browse Files
Download
Plain Diff
Merged changes from soma-tests
parents
2bef80f3
8b5cdfb9
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
0 deletions
+28
-0
DapperTests.csproj
Tests/DapperTests.csproj
+15
-0
PerformanceTests.cs
Tests/PerformanceTests.cs
+11
-0
Program.cs
Tests/Program.cs
+2
-0
Soma.Core.IT.MsSql.dll
Tests/Soma/Soma.Core.IT.MsSql.dll
+0
-0
Soma.Core.IT.MsSqlCe.dll
Tests/Soma/Soma.Core.IT.MsSqlCe.dll
+0
-0
Soma.Core.dll
Tests/Soma/Soma.Core.dll
+0
-0
No files found.
Tests/DapperTests.csproj
View file @
dbff11c6
...
...
@@ -79,6 +79,18 @@
<Reference
Include=
"Simple.Data.SqlServer"
>
<HintPath>
Simple.Data\Simple.Data.SqlServer.dll
</HintPath>
</Reference>
<Reference
Include=
"Soma.Core, Version=0.8.0.0, Culture=neutral, PublicKeyToken=bc5ae85929f8312a, processorArchitecture=MSIL"
>
<SpecificVersion>
False
</SpecificVersion>
<HintPath>
Soma\Soma.Core.dll
</HintPath>
</Reference>
<Reference
Include=
"Soma.Core.IT.MsSql, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL"
>
<SpecificVersion>
False
</SpecificVersion>
<HintPath>
Soma\Soma.Core.IT.MsSql.dll
</HintPath>
</Reference>
<Reference
Include=
"Soma.Core.IT.MsSqlCe, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL"
>
<SpecificVersion>
False
</SpecificVersion>
<HintPath>
Soma\Soma.Core.IT.MsSqlCe.dll
</HintPath>
</Reference>
<Reference
Include=
"SubSonic.Core"
>
<HintPath>
SubSonic\SubSonic.Core.dll
</HintPath>
</Reference>
...
...
@@ -196,6 +208,9 @@
<Content
Include=
"OrmLite\ServiceStack.OrmLite.dll"
/>
<Content
Include=
"OrmLite\ServiceStack.OrmLite.SqlServer.dll"
/>
<Content
Include=
"OrmLite\ServiceStack.Text.dll"
/>
<Content
Include=
"Soma\Soma.Core.dll"
/>
<Content
Include=
"Soma\Soma.Core.IT.MsSql.dll"
/>
<Content
Include=
"Soma\Soma.Core.IT.MsSqlCe.dll"
/>
</ItemGroup>
<ItemGroup>
<Folder
Include=
"bltoolkit\"
/>
...
...
Tests/PerformanceTests.cs
View file @
dbff11c6
...
...
@@ -68,6 +68,14 @@ static DataClassesDataContext GetL2SContext()
private
static
Func
<
EntityFramework
.
tempdbEntities1
,
int
,
EntityFramework
.
Post
>
entityFrameworkCompiled
=
System
.
Data
.
Objects
.
CompiledQuery
.
Compile
<
EntityFramework
.
tempdbEntities1
,
int
,
EntityFramework
.
Post
>((
db
,
id
)
=>
db
.
Posts
.
First
(
p
=>
p
.
Id
==
id
));
internal
class
SomaConfig
:
Soma
.
Core
.
MsSqlConfig
{
public
override
string
ConnectionString
{
get
{
return
Program
.
connectionString
;
}
}
}
public
void
Run
(
int
iterations
)
{
var
tests
=
new
Tests
();
...
...
@@ -164,6 +172,9 @@ public void Run(int iterations)
// IDbCommand ormLiteCmd = Program.GetOpenConnection().CreateCommand();
// tests.Add(id => ormLiteCmd.Select<Post>("select * from Posts where Id = {0}", id), "ServiceStack.OrmLite SQL Query");
// Soma
var
somadb
=
new
Soma
.
Core
.
Db
(
new
SomaConfig
());
tests
.
Add
(
id
=>
somadb
.
Find
<
Post
>(
id
),
"Soma"
);
// HAND CODED
...
...
Tests/Program.cs
View file @
dbff11c6
...
...
@@ -4,8 +4,10 @@
namespace
SqlMapper
{
[
Soma
.
Core
.
Table
(
Name
=
"Posts"
)]
class
Post
{
[
Soma
.
Core
.
Id
(
Soma
.
Core
.
IdKind
.
Identity
)]
public
int
Id
{
get
;
set
;
}
public
string
Text
{
get
;
set
;
}
public
DateTime
CreationDate
{
get
;
set
;
}
...
...
Tests/Soma/Soma.Core.IT.MsSql.dll
0 → 100644
View file @
dbff11c6
File added
Tests/Soma/Soma.Core.IT.MsSqlCe.dll
0 → 100644
View file @
dbff11c6
File added
Tests/Soma/Soma.Core.dll
0 → 100644
View file @
dbff11c6
File added
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