I found an intresting article https://www.thereformedprogrammer.net/a-better-way-to-handle-authorization-in-asp-net-core/
I fonud a typing error we use IDbSet in place off DbSet.
I fix and it works.
Hi
the error message is NotSupportedException because the Linq interpreter not call the SQL Json Function but call static class
I try to update karma but the result is the same
Hi after a lot of rework I found a partial solution to our context
public override void PreInitialize()
{
//....
RegisterFakeService<firstDbContext>();
RegisterFakeService<secondDbContext>();
//....
}
RegisterIdentity(iocManager);
var builder = new DbContextOptionsBuilder<firstDbContext>();
var builder2 = new DbContextOptionsBuilder<secondDbContext>();
var sqlite1 = new SqliteConnection("Data Source=firstDbContext.db");
var sqlite2 = new SqliteConnection("Data Source=secondDbContext.db");
builder.UseSqlite(sqlite1);
builder2.UseSqlite(sqlite2);
iocManager.IocContainer.Register(
Component
.For<DbContextOptions<firstDbContext>>()
.Instance(builder.Options)
.LifestyleSingleton()
);
iocManager.IocContainer.Register(
Component
.For<DbContextOptions<secondDbContext>>()
.Instance(builder2.Options)
.LifestyleSingleton()
);
sqlite1.Open();
sqlite2.Open();
new firstDbContext(builder.Options).Database.EnsureCreated();
new secondDbContext(builder2.Options).Database.EnsureCreated();
So now I have a problem related to sqlLite that I not allow multiple connection. So I need to check if I can redo Seed or other strategy
I think this issue is related to our arch beacuse we have 2 DbContext in 2 separate EFCore project. So when application run normally 2 dbcontext are resolved normally but during the test I see that test base project use a "fake" dbcontext (based on sqlLite).
I look into the demo app with 2 dbcontext but is not our case (because we use 2 different project).
Any Idea how can I start my Test with 2 dbContext?
Hi @ismcagdas
I found a solution but is not related to a ABP/Zero bug Framework all depends in wich way Angular close / cancel connection.
In any way I use this solution angular-how-to-cancel-http-calls-on-router-change
I put it on root.module.ts so now when user change route all connection receive cancellation and it close the flow if is implemented.
Hi @peopleteq
I think the only way is create your custom pipe (based on orignal) because the second args is varibale array or use a special notation to identify when first element off args is localization key (es. '##') so in this way you can add an if and call l or ls function
Hi @ismcagdas
I kno very well that momen!
I check on stats and I see that I've Tlerik, moment and Angular that consume, more or less the 75% of space, so I don't find a specific problem. If I remove Terlik I can reduce the size about 1 Mb. I'm waitng if you find any tricks to reduce it.