Hi all,
I have a error in production that is built with 2 web servers against
a common SQL-server database.
I have one root entity with a ISet of Value Objects.
The mapping looks like this.
mapping.HasMany(x => x.DayInfos)
.Access.CamelCaseField(Prefix.Underscore)
.Table("WeeklyMailDayInfo")
.Component(c =>
{
c.Map(x => x.DayOfWeek);
c.Map(x => x.ImageText);
c.Map(x => x.ImageUrl);
});
When the user changes a ImageUrl the code simply removes and adds a
new DayInfo to the ISet.
The problem I see in production is from the logfiles generated by
NHibernate.
The log indicates
DELETE FROM WeeklyMailDayInfo WHERE WeeklyMailFk = @p0 AND DayOfWeek =
@p1 AND ImageText = @p2 AND ImageUrl = @p3;@p0 = 3003, @p1 =
'Tuesday', @p2 = NULL, @p3 = NULL
Note the 2 nulls even though there is a value in ImageUrl and
ImageText already.
I'm unable to reproduce this in any unittest or in my development
enironment.
DevWeb and unittests are executed against SQLite
/HAXEN
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.