This question is locked. New answers and comments are not allowed.
how i can update objects?
i use below code but it doesnt work.. nothing happens..
i couldnt undestand why, can you help me please
i use below code but it doesnt work.. nothing happens..
i couldnt undestand why, can you help me please
public
void SaveRole(Role role)
{
IObjectScope scope = null;
try
{
scope =
Database.Get("DatabaseConnection1").GetObjectScope();
scope.Transaction.Begin();
role.Definition = "something";
}
catch (Exception ex)
{
ExceptionPolicy.HandleException(ex, "Log Only Policy");
}
finally
{
if (scope != null)
{
scope.Transaction.Commit();
}
}
}