Commit 90bc66ad authored by Demis Bellot's avatar Demis Bellot

Made GetModelDefinition lock-free, changed Dapper to use more strong typed QueryById

parent a1e73f85
...@@ -198,7 +198,7 @@ public void Run(int iterations) ...@@ -198,7 +198,7 @@ public void Run(int iterations)
//ServiceStack's OrmLite: //ServiceStack's OrmLite:
OrmLiteConfig.DialectProvider = SqlServerOrmLiteDialectProvider.Instance; //Using SQL Server OrmLiteConfig.DialectProvider = SqlServerOrmLiteDialectProvider.Instance; //Using SQL Server
IDbCommand ormLiteCmd = Program.GetOpenConnection().CreateCommand(); IDbCommand ormLiteCmd = Program.GetOpenConnection().CreateCommand();
tests.Add(id => ormLiteCmd.QuerySingle<Post>("Id", id), "OrmLite QuerySingle"); tests.Add(id => ormLiteCmd.QueryById<Post>(id), "OrmLite QueryById");
// HAND CODED // HAND CODED
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment