Thanks for the reply!
I needed that because I did not want to start transaction. I got that working by setting "isTransactional: false" in UOW attribute.
One more question is should we set isTransactional: false on application service methods which only performs get/select operation? Just to avoid unnecessary starting transactions in such case. Will it be useful to improve the performance?
Thanks!
Hi,
I am getting following error when I use [UnitOfWork(IsDisabled=true)] on application service method and try to access navigation properties on an entity.
The ObjectContext instance has been disposed and can no longer be used for operations that require a connection.
If I remove that UOW attribute it works just fine.
What can be the issue?
Thanks
Hi,
We store all the dates in UTC format. What will be the best way to read/show all dates from DB in a specific time zone. Does ABP template provides this facility using Clock, if yes, how to use it?
Thanks
Hi,
I have tried to add below code in EntityFramework and Web project module classe's PreInitiliaze method: In which module's PreInitialize method we need to add below code?
Configuration.UnitOfWork.OverrideFilter(AbpDataFilters.MayHaveTenant, false);
Configuration.UnitOfWork.OverrideFilter(AbpDataFilters.MustHaveTenant, false);
But still only MayHaveTenant filter got disabled and MustHaveTenant filter was still enabled.
What I am missing here?
Thanks
Hi,
Unit tests sometimes throw Timeout exception. What can be the cause of this exception? Running the same test again passes successfully, timeout error is inconsistent, sometimes it occurs sometimes not.
Below is the error message: System.Data.Entity.Infrastructure.CommitFailedException : An error was reported while committing a database transaction but it could not be determined whether the transaction succeeded or failed on the database server. See the inner exception and <a class="postlink" href="http://go.microsoft.com/fwlink/?LinkId=313468">http://go.microsoft.com/fwlink/?LinkId=313468</a> for more information. ---- System.Transactions.TransactionAbortedException : The transaction has aborted. -------- System.TimeoutException : Transaction Timeout
Thanks
Hi,
Is it a good idea to disable tenant filters globally in the DbContext itself?
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
modelBuilder.DisableFilterGlobally(AbpDataFilters.MayHaveTenant);
modelBuilder.DisableFilterGlobally(AbpDataFilters.MustHaveTenant);
}
I have disabled filters globally using above code in DbContext class, but MayHaveTenant filter is still enabled. Any idea why DisableFilterGlobally not working?
Thanks
Okay, Thanks!
I would like to know when permissions inserted in cache? I mean which event and class
Thanks
Hi,
Can anyone help me on this?
Thanks
First issue has been resolved, it was due to old data.
How to update permission cache when permissions of role changed?
Thanks
Hi,
I have created one role and given it permissions of Roles screen's few actions such as Create. But it still shows Actions button with Edit and Delete option, for which I have not granted permissions to that role.
I have checked in js object (abp.auth.grantedPermissions), it also shows Edit and Delete permissions which I have not granted.
Can anyone say why this is happening?
I tried to check in code in GitHub repository, but I was not able to find definition of PermissionChecker.IsGrantedAsync method. It has only implemented in NullPermissionChecker and not able to find PermissionChecker class.
Also, how update permission cache when permissions of role changed?
Any quick help will be much appreciated!
Thanks