Hi,
I will check it out.
Hi,
Module should be "more re-usable". Every project in the module template becomes reusable nuget packages (library). when you create a library, it is best to depend on the lowest possible framework. In this way, more platforms can use it. for the application template, only some of the projects have potential to be reusable by other type of applications.
Hi,
if I use AuditedEntity like below then the migration does not create the Id column. The problem is that if I enherit from AuditedEntity then I cannot use the generic repo
Hi, you can of course use a generic repository, use AbstractKeyCrudAppService instead of CrudAppService. check this: https://docs.abp.io/en/abp/5.1/Application-Services#abstractkeycrudappservice
[DependsOn(
//.......
typeof(AbpCachingStackExchangeRedisModule),
)]
public class ...PublicModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
.....
Configure<AbpDistributedCacheOptions>(options =>
{
options.KeyPrefix = "YourProjectName:";
});
var dataProtectionBuilder = context.Services.AddDataProtection().SetApplicationName("YourProjectName");
if (!hostingEnvironment.IsDevelopment())
{
var redis = ConnectionMultiplexer.Connect(configuration["Redis:Configuration"]);
dataProtectionBuilder.PersistKeysToStackExchangeRedis(redis, "YourProjectName-Protection-Keys");
}
}
}
[DependsOn(
//.......
typeof(AbpCachingStackExchangeRedisModule),
)]
public class ...MvcModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
.....
Configure<AbpDistributedCacheOptions>(options =>
{
options.KeyPrefix = "YourProjectName:";
});
var dataProtectionBuilder = context.Services.AddDataProtection().SetApplicationName("YourProjectName");
if (!hostingEnvironment.IsDevelopment())
{
var redis = ConnectionMultiplexer.Connect(configuration["Redis:Configuration"]);
dataProtectionBuilder.PersistKeysToStackExchangeRedis(redis, "YourProjectName-Protection-Keys");
}
}
}
Hi,
you can create a new project to compare.
Hi,
The problem should be fixed in the new version, see: https://github.com/abpframework/abp/pull/11260
If you don't want to upgrade your project, you can configure Redis in the Web.Public and Web projects.
PS: you can create a new project to compare
I cannot use the generic reposo if I inherit from AuditEntity
What is the error?
Hi,
You can try this:
public partial class Practice : AuditedEntity
{
//........
public int PracticeId { get; set; }
public override object[] GetKeys()
{
return new object[] { PracticeId };
}
}
Hi,
What is the Practice entity look like, can you share some code?
Hi,
Can you check this?: https://support.abp.io/QA/Questions/2489/PGSQL-DateTime-mapping-issue-with-512-and-earlier-due-to-Npgsql-6