diff --git a/Tests/DapperTests.csproj b/Tests/DapperTests.csproj index 54f209fb..74c6f4c4 100644 --- a/Tests/DapperTests.csproj +++ b/Tests/DapperTests.csproj @@ -79,6 +79,18 @@ Simple.Data\Simple.Data.SqlServer.dll + + False + Soma\Soma.Core.dll + + + False + Soma\Soma.Core.IT.MsSql.dll + + + False + Soma\Soma.Core.IT.MsSqlCe.dll + SubSonic\SubSonic.Core.dll @@ -196,6 +208,9 @@ + + + diff --git a/Tests/PerformanceTests.cs b/Tests/PerformanceTests.cs index d054c764..6a13d6ea 100644 --- a/Tests/PerformanceTests.cs +++ b/Tests/PerformanceTests.cs @@ -68,6 +68,14 @@ namespace SqlMapper private static Func entityFrameworkCompiled = System.Data.Objects.CompiledQuery.Compile((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 @@ r& number, NumberFormatInfo info, Boolean parseDecimal) // IDbCommand ormLiteCmd = Program.GetOpenConnection().CreateCommand(); // tests.Add(id => ormLiteCmd.Select("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(id), "Soma"); // HAND CODED diff --git a/Tests/Program.cs b/Tests/Program.cs index 27f6e748..572fe1c1 100644 --- a/Tests/Program.cs +++ b/Tests/Program.cs @@ -4,8 +4,10 @@ using System.Reflection; 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; } diff --git a/Tests/Soma/Soma.Core.IT.MsSql.dll b/Tests/Soma/Soma.Core.IT.MsSql.dll new file mode 100644 index 00000000..b582015e Binary files /dev/null and b/Tests/Soma/Soma.Core.IT.MsSql.dll differ diff --git a/Tests/Soma/Soma.Core.IT.MsSqlCe.dll b/Tests/Soma/Soma.Core.IT.MsSqlCe.dll new file mode 100644 index 00000000..c1278300 Binary files /dev/null and b/Tests/Soma/Soma.Core.IT.MsSqlCe.dll differ diff --git a/Tests/Soma/Soma.Core.dll b/Tests/Soma/Soma.Core.dll new file mode 100644 index 00000000..c1811a70 Binary files /dev/null and b/Tests/Soma/Soma.Core.dll differ