first commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using JSMachine.WMS.Common;
|
||||
using JSMachine.WMS.Domain.IRepository;
|
||||
using SqlSugar;
|
||||
|
||||
namespace JSMachine.WMS.Domain.Repository
|
||||
{
|
||||
/// <summary>
|
||||
/// BCC 数据库连接配置,将应用配置映射为 SqlSugar 的 SQL Server 连接定义。
|
||||
/// </summary>
|
||||
public class BccDbConnectionConfig : IDbConnectionConfig
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取数据库连接配置;连接字符串由全局应用配置提供。
|
||||
/// </summary>
|
||||
public ConnectionConfig ConnectionConfig => new()
|
||||
{
|
||||
ConfigId = "Bcc",
|
||||
DbType = DbType.SqlServer,
|
||||
IsAutoCloseConnection = true,
|
||||
ConnectionString = Global.AppSettings.DataBaseCon,
|
||||
InitKeyType = InitKeyType.Attribute,
|
||||
LanguageType=LanguageType.Chinese
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user