Page 1 of 1

When you spend 2 hours debugging...

Posted: Wed Oct 26, 2016 5:43 am
by AbleMods
a custom field added to a table and it just won't save. You save the object. You save the parent object. You save BOTH the object AND the parent object. You loop through the entire collection saving everything with a .Save() method just because nothing else is working.

And then finally you realize you only added the property to the class, you never updated the nHibernate hbm file...
42365597.jpg

Re: When you spend 2 hours debugging...

Posted: Wed Oct 26, 2016 6:19 am
by Katie
Aren't you kind of young to be programming? :)

Re: When you spend 2 hours debugging...

Posted: Wed Oct 26, 2016 6:39 am
by AbleMods
HA!

I just wish I still had that much hair :roll:

Re: When you spend 2 hours debugging...

Posted: Thu Oct 27, 2016 8:13 am
by jmestep
Or if you are in a repeater and only every other item shows. Duh, don't filter for only ListItemType.Item, filter for ListItemType.AlternatingItem also.
I just did that today.