Activities of "niall"

  • ABP Framework version: v8.2.2
  • UI Type: MVC
  • Database System: EF Core (SQL Server,MySQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

I created a app-pro template project named as MyApp. then created a module template project named as MyModule.

The MyApp use SQLServer, but i need use MySQL at MyModule, how to implement it?

I added the Microsoft.EntityFrameworkCore.Design and Volo.Abp.EntityFrameworkCore.MySQL to the MyModule.EntityFrameworkCore.csproj, and added a DbContextFactory class.

using System.IO;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Design;
using Microsoft.Extensions.Configuration;

namespace MyModule.EntityFrameworkCore;

public class MyModuleDbContextFactory : IDesignTimeDbContextFactory<MyModuleDbContext>
{
    public MyModuleDbContext CreateDbContext(string[] args)
    {
        var configuration = BuildConfiguration();

        var builder = new DbContextOptionsBuilder<MyModuleDbContext>()
            .UseMySql(configuration.GetConnectionString(MyModuleDbProperties.ConnectionStringName), MySqlServerVersion.LatestSupportedServerVersion);

        return new MyModuleDbContext(builder.Options);
    }

    private static IConfigurationRoot BuildConfiguration()
    {
        var builder = new ConfigurationBuilder()
            .SetBasePath(Directory.GetCurrentDirectory())
            .AddJsonFile("appsettings.json", optional: false);

        return builder.Build();
    }
}

Migrations files generated success by use dotnet ef migrations add Initial.

But how to configure the MyModule.EntityFrameworkCore to use MySQL?

Yes, the project created by SUITE is pro, now resolved it. Thanks!

OK, Thanks!

HAH, it works.

but a new issue, I only updated the basic to leptonx, but some ui need update to pro, such as account.

Is there a document to explain how to update them?

for example. i notice them at pro project.

    <PackageReference Include="Volo.Abp.Identity.Pro.Web" Version="8.2.2" />
    <PackageReference Include="Volo.Abp.Account.Pro.Admin.Web" Version="8.2.2" />
    <PackageReference Include="Volo.Abp.Account.Pro.Public.Web.Impersonation" Version="8.2.2" />
    <PackageReference Include="Volo.Abp.Account.Pro.Public.Web.Shared" Version="8.2.2" />
    <PackageReference Include="Volo.Abp.OpenIddict.Pro.Web" Version="8.2.2" />

but at basic like this:

    <PackageReference Include="Volo.Abp.Account.Web.OpenIddict" Version="8.2.2" />

How do the module of the Basic and Professional correspond?

I just want to get a pro module template. Or can you generate one for me?

OK, I understand.

I have seen this example, but considering that implementing a DDD architecture on my own is too complicated, that's why I want to use templates project directly.

What are the potential risks if using a template as a plugin?

Hi,

I update the basic to leptonX manually. but got a error tip me need license.

ABP-LIC-0020 - License code not found! Ensure that your appsettings.json or appsettings.secrets.json has "AbpLicenseCode" key with your license code.

How do i generate the license manually in my project?

Oh, So you mean My.Plugin simply inherits AbpModule without using a module template?

If depend a new module, Is need rebuild the My.Platform?

I notice the document and example at https://abp.io/docs/latest/framework/architecture/modularity/plugin-modules , the plugin is a AbpModule too. How do I understand your answer? -- "The My.Plugin is a module. It would be best not to use it as a Plugin."

got a error.

xxxx> abp add-package Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX

ABP CLI 8.2.2
Installing 'Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX' package to the project 'XTC.License.Web'...
  正在确定要还原的项目…
  Writing xxxxxxxx\tmpfvyqbq.tmp
info : X.509 certificate chain validation will use the default trust store selected by .NET for code signing.
info : X.509 certificate chain validation will use the default trust store selected by .NET for timestamping.
info : 正在将包“Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX”的 PackageReference 添加到项目“xxxx\XTC.License.Web\XTC.License.Web.csproj”。
info : 正在还原 xxxx\vs2022\src\XTC.License.Web\XTC.License.Web.csproj 的包...
info :   GET https://api.nuget.org/v3-flatcontainer/volo.abp.aspnetcore.mvc.ui.theme.leptonx/index.json
info :   NotFound https://api.nuget.org/v3-flatcontainer/volo.abp.aspnetcore.mvc.ui.theme.leptonx/index.json 274 毫秒
error: NU1101: 找不到包 Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX。源 C:\Program Files\dotnet\library-packs, Microsoft Visual Studio Offline Packages, nuget.org 中不存在具有此 ID 的包
info :   GET https://api.nuget.org/v3/vulnerabilities/index.json
info :   OK https://api.nuget.org/v3/vulnerabilities/index.json 176 毫秒
info :   GET https://api.nuget.org/v3/vulnerabilities/vulnerability.base.json
info :   GET https://api.nuget.org/v3/vulnerabilities/vulnerability.update.json
info :   OK https://api.nuget.org/v3/vulnerabilities/vulnerability.base.json 258 毫秒
info :   OK https://api.nuget.org/v3/vulnerabilities/vulnerability.update.json 350 毫秒
error: 包“Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX”与项目“E:\github\BaaSo\BaaSo-BusinessUnit-License\vs2022\src\XTC.License.Web\XTC.License.Web.csproj”中的“all”框架不兼容。
Successfully installed.

I logined with my account.

I resolved it, Thanks!

Showing 21 to 30 of 78 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 19, 2024, 10:13