Hi,
Disabling unitOfWork that way should work but there is something else I think. How do you call Create method in Program.cs file ? I couldn't see it.
Alternatively, you can disable all transactions like this in your initialize method of your AbpZeroTemplateLegacyDatabaseServiceModule class.
Configuration.UnitOfWork.IsTransactional = false;
Hi,
Currently it is 30 minutes but you can set it like this if your version of AspNet Zero does not have it already.
var currentUtc = new SystemClock().UtcNow;
ticket.Properties.IssuedUtc = currentUtc;
ticket.Properties.ExpiresUtc = currentUtc.Add(TimeSpan.FromMinutes(30));
There is no function to refresh it right now. You can request a new token using /api/account/authenticate when you get a 401 error.
Hi,
Can you share your application service code as well ?
In the mean time, you can comment out your app service method lines and try to find out which part causes this slowness. You can first try to return an empty response and see how long does it take to execute.
Hi,
The error message says, it is because of EditContactDto class. If you added [AutoMap(Contact)] attribute on it, then the problem is probably because of it's Id type. Your Contact entity is FullAuditedEntity<Int64> but EditContactDto is EntityDto. You should change it to EntityDto<Int64> as well.
Please write back if this does not solve the problem.
Hi,
I didn't know that.
So, when you use SetTenantId, it switches the Database. connectionString of the provided tenant becames the active connection string.
Basically, when you create a new tenant, if you provide the connectionString property, tenant database will be created. And when you use setTenantId, database will be switched to that database.
Have you tried that ? If you did, what happens when you use setTenantId ?
Hi,
You can get all permissions and parent permissions like this.
var permissions = PermissionManager.GetAllPermissions();
var rootPermissions = permissions.Where(p => p.Parent == null);
Then you can fill child permissions using a recursive method like this.
foreach (var rootPermission in rootPermissions)
{
AddChildPermission(rootPermission, permissions);
}
void AddChildPermission(...)
{
.....
}
Hi,
You shouldn't change it for the current version. Leave it as tenant 1 (default).
Hi,
Sorry, I think I missunderstand you. Current DB Per Tenant architecture does not support Azure's elastic DB. At leas we haven't tried it with Azure's elastic DB.
As far as I know, cloud services does not support distributed transactions. Because of that, you cannot switch to another tenant in a transactional operation.
Do you have a specific error message ? Maybe we can continue with that.
Hi,
Do you have a SMTP server on your local machine ? Error says the connection to 127.0.0.1:25 is refused.
Hi,
You can check this issue <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/769">https://github.com/aspnetboilerplate/as ... issues/769</a>.