文件名称:AspNetCoreLocalization:Localization.SqlLocalizer和ASP.NET Core MVC本地化示例
文件大小:76KB
文件格式:ZIP
更新时间:2024-02-20 15:18:54
sql mvc localization aspnetcore asp-net-core
建立
Localization.SqlLocalizer
.net核心
========================
文档: :
| |
基本用法ASP.NET Core
将NuGet包添加到project.csproj文件
"dependencies": {
"Localization.SqlLocalizer": "3.0.0",
添加DbContext并使用AddSqlLocalization扩展方法添加SQL Localization包。
public void ConfigureServices(IServiceCollection services)
{
// init database for localization
var sqlConnectionString = Configuration["DbStringLocalizer:ConnectionString"];
services.AddDbContext
【文件预览】:
AspNetCoreLocalization-master
----.gitignore(3KB)
----src()
--------Localization.SqlLocalizer()
--------Localization.SqlLocalizer.IntegrationTests()
--------ImportExportLocalization()
--------AspNetCoreLocalization()
----LICENSE(1KB)
----AspNetCoreLocalization.sln(6KB)
----README.md(3KB)
----Changelog.md(324B)
----appveyor.yml(465B)
----.gitattributes(2KB)