your domain service should depend on the EntityFrameworkCore.Test project. and your EntityFrameworkCore.Test project module class should be like this
You can create a new project from module template, to see how it works
abp new Acme.MyProModule -t module-pro -csf
[DependsOn(
typeof(MyProjectNameTestBaseModule),
typeof(MyProjectNameEntityFrameworkCoreModule),
typeof(AbpEntityFrameworkCoreSqliteModule)
)]
public class MyProjectNameEntityFrameworkCoreTestModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
var sqliteConnection = CreateDatabaseAndGetConnection();
Configure<AbpDbContextOptions>(options =>
{
options.Configure(abpDbContextConfigurationContext =>
{
abpDbContextConfigurationContext.DbContextOptions.UseSqlite(sqliteConnection);
});
});
}
private static SqliteConnection CreateDatabaseAndGetConnection()
{
var connection = new SqliteConnection("Data Source=:memory:");
connection.Open();
new MyProjectNameDbContext(
new DbContextOptionsBuilder<MyProjectNameDbContext>().UseSqlite(connection).Options
).GetService<IRelationalDatabaseCreator>().CreateTables();
return connection;
}
}
see https://support.abp.io/QA/Questions/1607/About-Many-to-Many-relationship-for-Different-Module-template https://github.com/abpframework/abp/issues/7689
also download the EasyCRM application which is made with ABP. you can see many to many relationship example https://docs.abp.io/en/commercial/latest/samples/easy-crm
we'll try to reproduce it.
hi I've created an internal issue for this enhancement (issue no: 7639) probably it'll be implmented in 5.0
hi,
there was an error on 4.4.1. do you get the same issue with 4.4.2?
the directory paths are stored in the following locations:
%UserProfile%\.abp\suite\appsettings.json
(WINDOWS)~/.abp/suite/appsettings.json
(MAC)check that the paths are correct and valid for your ABP solution.
can you reproduce it with 4.4.2?
the version releases takes some time. if you update your solution within an ongoing release you may encounter some issues. because some packages will be missing but they'll be published soon.