brainless83/ServiceStack.Benchmarks — comment on commit f9b7f5a04e26cbd9771ec998d39f5464f398a77e
File: src/Northwind.Benchmarks/Northwind.Common/DataModel/Northwind.models.cs line 199
By brainless83:

Right ... this one I totally forgot.

When I was running the Northwind tests against MySql I encountered some issues with the data model and the data that is inserted. The reason why i removed the AutoIncrement attribute here is, that the order ids inserted in NorthwindData.LoadData start with the id 10248. This id is referenced in the OrderItems that are inserted.

If the attribute is set, the field is skipped in OrmLiteDialectProviderBase.ToInsertRowStatement (which is totally ok) but for this reason inserting the test data will fail as the foreign key constraint of OrderDetail.OrderId is validated.

The "solution" at hand, of course, is a quick and dirty fix to make the tests pass. A better solution has to be found here.