The following code example fails with
NUnit.Framework.AssertionException:
expected: <65>
but was: <66>
[Test(Description = "TEMP")]
public void TEMP()
{
SubAEntity newValues = new SubAEntity();
newValues.EndValidity = new DateTime(2010,12,31);
SubACollection updater = new SubACollection();
int affectedRows = updater.UpdateMulti(newValues, null);
Assert.AreEqual(65, affectedRows);
// The last line could be replaced with Assert.AreEqual(updater.GetDbCount(), affectedRows) which has the same result.
}
Note that I have replaced the original table and entity names with substitutes.
Table SubA is a subtype of table Super. There is one other subtype, which has 11 rows.
I have tried the same code on a table which has no relations and/or supertype and then the update count is correct.
Because this is the only table I use in a super/subtype construction I have some suspection in that direction, but that's just a wild guess.