Hi,
Please add these module dependencies to MRSModule
// Saas Management module packages
typeof(SaasHostWebModule),
typeof(SaasHostHttpApiModule),
typeof(SaasHostApplicationModule),
typeof(SaasEntityFrameworkCoreModule)
BTW, I guess you don't want to include the SaasModule in your project. if so, you don't need to add module dependencies. but you should remove all ITenantRepository
uses.
Update the MRSDbMigrationService
class.
public class MRSDbMigrationService : ITransientDependency
{
public ILogger<MRSDbMigrationService> Logger { get; set; }
private readonly IDataSeeder _dataSeeder;
private readonly MRSEFCoreDbSchemaMigrator _dbSchemaMigrator;
public MRSDbMigrationService(
IDataSeeder dataSeeder,
MRSEFCoreDbSchemaMigrator dbSchemaMigrator)
{
_dataSeeder = dataSeeder;
_dbSchemaMigrator = dbSchemaMigrator;
Logger = NullLogger<MRSDbMigrationService>.Instance;
}
public async Task MigrateAsync()
{
var initialMigrationAdded = AddInitialMigrationIfNotExist();
if (initialMigrationAdded)
{
return;
}
Logger.LogInformation("Started database migrations...");
await MigrateDatabaseSchemaAsync();
await SeedDataAsync();
Logger.LogInformation($"Successfully completed host database migrations.");
Logger.LogInformation("You can safely end this process...");
}
.........
}
Add the following code to Program
class
if (IsMigrateDatabase(args))
{
builder.Services.AddDataMigrationEnvironment();
}
Hi,
It's better you create different roles to manage the permissions. https://en.wikipedia.org/wiki/Role-based_access_control Or you can set a role without any permission and manage the permissions on the user side.
Hi,
Can you share some browser developer tools screenshots?
It's a DI problem, looks like one of your services is not registered with the container.
Some possible reasons:
DbSet
to the database context for your entity.Dependency Injection document: https://docs.abp.io/en/abp/latest/Dependency-Injection
You can share the project with me if you still not found the problem, I will check it. shiwei.liang@volosoft.com
Hi,
Can you share some browser developer tools screenshots?
Hi,
It's possible.
Pages/Account/Register.cshtml
@page
@using Microsoft.AspNetCore.Mvc.Localization
@using Qa.Blazor.Components
@using Volo.Abp.Account.Localization
@inject IHtmlLocalizer<AccountResource> L
@inject Volo.Abp.AspNetCore.Mvc.UI.Layout.IPageLayout PageLayout
@{
PageLayout.Content.Title = L["Register"].Value;
}
@(await Html.RenderComponentAsync<RegisterComponent>(RenderMode.ServerPrerendered))
Components/RegisterComponent.razor
<h3>Blazor Component in MVC</h3>
Hi,
I could not reproduce the problem, can you use a new project to reproduce the problem and share it with me? shiwei.liang@volosoft.com I will check it.
One more thing As I am using the commercial version of the Identity and Sass modules, I would like access to the following .cshtml files:
The team license does not include source code, I'm not sure I can share the code with you, I will ask ABP team.
I'm not sure about the namespace/Intermediate folders
You can see it in the request
Sorry, I thought the API you were talking about was the connect/token
endpoint.
Volo.Abp.Account.Public.Web.Areas.Account.Controllers.AccountController is being used for api/account/login
We don't have such an app service, all things are done in the login model.
There are some differences between IdentityServer and OpenIddict
IdentityServer, you can custom login page: IdentityServerSupportedLoginModel
[ExposeServices(typeof(LoginModel))]
public class MyLoginModel : IdentityServerSupportedLoginModel
{
}
Openiddict you can custom login page: OpenIddictSupportedLoginModel
[ExposeServices(typeof(LoginModel))]
public class MyLoginModel : OpenIddictSupportedLoginModel
{
}
Still cannot limit the execution time for job instance, so any job does not work more than 5 minutes for example
It's Hangfire support this? can you explant it in detail thanks?