提交 a1a0bd2d 编写于 作者: M markrendle

Added Simple.Data to performance tests

上级 75b437f9
......@@ -2,3 +2,4 @@
bin/
obj/
/*.user
_Resharper*
\ No newline at end of file
......@@ -70,6 +70,15 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>OrmLite\ServiceStack.Text.dll</HintPath>
</Reference>
<Reference Include="Simple.Data, Version=0.5.10.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>Simple.Data\Simple.Data.dll</HintPath>
</Reference>
<Reference Include="Simple.Data.Ado, Version=0.5.10.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>Simple.Data\Simple.Data.Ado.dll</HintPath>
</Reference>
<Reference Include="Simple.Data.SqlServer, Version=0.5.10.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>Simple.Data\Simple.Data.SqlServer.dll</HintPath>
</Reference>
<Reference Include="SubSonic.Core">
<HintPath>SubSonic\SubSonic.Core.dll</HintPath>
</Reference>
......@@ -185,6 +194,7 @@
</ItemGroup>
<ItemGroup>
<Folder Include="bltoolkit\" />
<Folder Include="Simple.Data\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Dapper\Dapper.csproj">
......
......@@ -152,6 +152,10 @@ 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");
// Simple.Data
var sdb = Simple.Data.Database.OpenConnection(Program.connectionString);
tests.Add(id => sdb.Posts.FindById(id), "Simple.Data");
//ServiceStack.OrmLite Provider:
/*
* Unhandled Exception: System.FormatException: Input string was not in a correct f
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册