subsonic / SubSonic-3.0-Templates

T4 Template Project for the peeps
http://subsonic.github.io/
105 stars 46 forks source link

IsNew is true after loading with SingleOrDefault #3

Closed jcoenen closed 15 years ago

jcoenen commented 15 years ago

To recreate var test = Category.LoadSingleOrDefault(c=>c.CategoryId=1); Assert.IsFalse(test.IsNew());

To fix (sorry unable to get github working through corp firewall/proxy so unable to fork/fix/pull)

Add this line to both SingleOrDefault() overloads single.SetIsNew(false);

robconery commented 15 years ago

FIXED: isNew should be false after loading with SingleOrDefault. Closed by f27205b098ebd0ff7c07454597bde7c45257e3a7