这是基于vue-vben-admin 模板适用于abp Vnext的前端管理项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
feijie 58cd62b08e feat(docs): 添加本地文档管理模块文档 1 year ago
..
LINGYUN/Abp/LocalizationManagement/EntityFrameworkCore upgrade abp framework to 8.2.0 2 years ago
FodyWeavers.xml upgrade(abp): upgrade abp framework to 7.4.0 2 years ago
FodyWeavers.xsd upgrade(abp): upgrade abp framework to 7.4.0 2 years ago
LINGYUN.Abp.LocalizationManagement.EntityFrameworkCore.csproj upgrade abp framework to 8.2.0 2 years ago
README.EN.md feat(docs): 添加本地文档管理模块文档 1 year ago
README.md feat(docs): 添加本地文档管理模块文档 1 year ago

README.md

LINGYUN.Abp.LocalizationManagement.EntityFrameworkCore

本地化管理模块的Entity Framework Core集成实现,提供数据访问和持久化功能。

功能特性

  • 实现本地化管理的数据库映射
  • 支持自定义表前缀和Schema
  • 提供仓储接口的EF Core实现
  • 支持语言、资源、文本的数据库操作

模块引用

[DependsOn(typeof(AbpLocalizationManagementEntityFrameworkCoreModule))]
public class YouProjectModule : AbpModule
{
  // other
}

配置项

public override void ConfigureServices(ServiceConfigurationContext context)
{
    context.Services.AddAbpDbContext<YourDbContext>(options =>
    {
        options.AddRepository<Language, EfCoreLanguageRepository>();
        options.AddRepository<Resource, EfCoreResourceRepository>();
        options.AddRepository<Text, EfCoreTextRepository>();
    });

    Configure<AbpDbContextOptions>(options =>
    {
        options.UseMySQL(); // 或其他数据库
    });
}

数据库表配置选项:

public class LocalizationModelBuilderConfigurationOptions : AbpModelBuilderConfigurationOptions
{
    public LocalizationModelBuilderConfigurationOptions(
       string tablePrefix = "",
       string schema = null)
       : base(tablePrefix, schema)
    {
    }
}

数据库表

  • Languages - 语言表
  • Resources - 资源表
  • Texts - 文本表

更多信息