Ver código fonte

Fixed issue in UpdateWorlds where Update used when it should be UpdateAll.

Kevin Howard 12 anos atrás
pai
commit
2f7ad3753c

+ 1 - 1
servicestack/src/Model/World.cs

@@ -55,7 +55,7 @@ namespace ServiceStackBenchmark.Model
             });
 
             // update the dataase with the above changes
-            db.Update<World>(worlds);
+            db.UpdateAll<World>(worlds);
 
             // return updated collection
             return worlds;

+ 2 - 0
servicestack/src/SelfHost/Program.cs

@@ -17,6 +17,8 @@ namespace ServiceStackBenchmark.SelfHost
                 try
                 {
                     appHost.Init();
+
+                    // TODO: switch to Start after the next ServiceStack deployment (added to framework on commit #806)
                     appHost.StartListening(listeningOn);
                 }
                 catch (Exception ex)