hi
Are you using the AddStackExchangeRedisCache
method in unit test?
https://docs.microsoft.com/en-us/aspnet/core/performance/caching/distributed?view=aspnetcore-3.1#distributed-redis-cache
However, I do not recommend using a real database in testing.
hi deltavision
You are right, The is ef core limits. Because some methods cannot translate to sql statement. There is no good solution for now.
hi ashvinu
I will create a demo for this.
Please follow: https://github.com/aspnetboilerplate/aspnetboilerplate/issues/5757
hi
using System.Reflection;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Abp.Modules;
using Abp.Reflection.Extensions;
using Castle.MicroKernel.Registration;
using ElsaProject.Configuration;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace ElsaProject.Web.Host.Startup
{
[DependsOn(
typeof(ElsaProjectWebCoreModule))]
public class ElsaProjectWebHostModule: AbpModule
{
private readonly IWebHostEnvironment _env;
private readonly IConfigurationRoot _appConfiguration;
public ElsaProjectWebHostModule(IWebHostEnvironment env)
{
_env = env;
_appConfiguration = env.GetAppConfiguration();
}
public override void Initialize()
{
IocManager.RegisterAssemblyByConvention(typeof(ElsaProjectWebHostModule).GetAssembly());
Register(typeof(Elsa.Dashboard.Areas.Elsa.Controllers.HomeController).GetAssembly());
Register(typeof(Elsa.WorkflowDesigner.ViewComponents.WorkflowDesignerViewComponent).GetAssembly());
}
private void Register(Assembly assembly)
{
//Controller
IocManager.IocContainer.Register(
Classes.FromAssembly(assembly)
.BasedOn<Controller>()
.If(type => !type.GetTypeInfo().IsGenericTypeDefinition && !type.IsAbstract)
.LifestyleTransient()
);
//Razor Pages
IocManager.IocContainer.Register(
Classes.FromAssembly(assembly)
.BasedOn<PageModel>()
.If(type => !type.GetTypeInfo().IsGenericTypeDefinition && !type.IsAbstract)
.LifestyleTransient()
);
//ViewComponents
IocManager.IocContainer.Register(
Classes.FromAssembly(assembly)
.BasedOn<ViewComponent>()
.If(type => !type.GetTypeInfo().IsGenericTypeDefinition)
.LifestyleTransient()
);
}
}
}
hi
The zero framework does not have field permissions, you can process Dto based on permissions in the application service.
hi aria
Maybe you can consider creating a new database table and importing the data from the old table.
Hi
Currently there is no web option of Power tools.
https://docs.aspnetzero.com/en/common/latest/Development-Guide-Rad-Tool-Mac-Linux
hi ashvinu
You can create a new DbContext and inherit the ConfigurationDbContext of Identity Server. Set and migrate according to the content in the document.
hi tapio.muikku Thanks, I will check the SignalRHelper .