Are you updating any of the fields to a new value?
On Thu, Jan 8, 2009 at 12:44 AM, Bart Reyserhove
<[email protected]>wrote:
> Ok, I tried to figure out this one myself but it's probably too late in the
> evening and I'm probably overlooking something stupid. In Rhino.Security
> there are UsersGroup and I want to change the name of one of those.
> I have a very small edit page to do that which posts to the following
> controller method:
>
> [SecuredOperation("Edit")]
> public virtual ActionResult Update(Guid id)
> {
> var usersGroup = _userGroupService.Get(id);
> SmartBinder.UpdateFrom(usersGroup, Request.Form);
> try
> {
> _userGroupService.Save(usersGroup);
> }
> catch (ValidationException e)
> {
> TempData["errors"] = e.Summary.GetLocalizedErrorMessages();
> return View("New",
> BuildViewData(usersGroup).WithTitle(Resources.User.NewTitle));
> }
> return this.RedirectToAction(c => c.List());
> }
>
> The 'Save' method from the _userGroupService is called with the updated
> usersGroup. I checked that and it is indeed changed there.
> The very fancy 'Save' method looks like this:
>
> [Transaction]
> public virtual void Save(UsersGroup instance)
> {
> _userGroupRepos.SaveOrUpdate(instance);
> }
>
> In NhProf I see that a transaction is started and committed but there is
> nothing done in the transaction. The UsersGroup is using the second level
> cache, so maybe it has something to do with that but I'm not sure.
>
> If anyone can shed some light on this one, that would be most welcome ;-)
>
> Greetz,
>
> Bart
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Rhino Tools Dev" 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/rhino-tools-dev?hl=en
-~----------~----~----~----~------~----~------~--~---