Skip to content

Commit

Permalink
Add latest OrmLite dlls to Dapper
Browse files Browse the repository at this point in the history
  • Loading branch information
Demis Bellot committed Nov 11, 2011
1 parent 30c4851 commit f519047
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 0 deletions.
Binary file modified Tests/OrmLite/ServiceStack.Common.dll
Binary file not shown.
Binary file modified Tests/OrmLite/ServiceStack.Interfaces.dll
Binary file not shown.
Binary file modified Tests/OrmLite/ServiceStack.OrmLite.SqlServer.dll
Binary file not shown.
Binary file modified Tests/OrmLite/ServiceStack.OrmLite.dll
Binary file not shown.
Binary file modified Tests/OrmLite/ServiceStack.Text.dll
Binary file not shown.
9 changes: 9 additions & 0 deletions Tests/PerformanceTests.cs
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Linq;
using System.Data.SqlClient;
using System.Diagnostics;
Expand All @@ -9,6 +10,8 @@
using Massive;
using NHibernate.Criterion;
using NHibernate.Linq;
using ServiceStack.OrmLite;
using ServiceStack.OrmLite.SqlServer;
using SqlMapper.Linq2Sql;
using SqlMapper.NHibernate;
using Dapper.Contrib.Extensions;
Expand Down Expand Up @@ -191,6 +194,12 @@ public void Run(int iterations)
// Soma
var somadb = new Soma.Core.Db(new SomaConfig());
tests.Add(id => somadb.Find<Post>(id), "Soma");

//ServiceStack's OrmLite:
OrmLiteConfig.DialectProvider = SqlServerOrmLiteDialectProvider.Instance; //Using SQL Server
IDbCommand ormLiteCmd = Program.GetOpenConnection().CreateCommand();
tests.Add(id => ormLiteCmd.QueryById<Post>(id), "OrmLite QueryById");


// HAND CODED

Expand Down
1 change: 1 addition & 0 deletions Tests/Program.cs
Expand Up @@ -4,6 +4,7 @@

namespace SqlMapper
{
[ServiceStack.DataAnnotations.Alias("Posts")]
[Soma.Core.Table(Name = "Posts")]
class Post
{
Expand Down

0 comments on commit f519047

Please sign in to comment.