系统新增一个数据库连接字符串信息,客户端的数据由服务器初始化,v1.7.11
This commit is contained in:
@@ -50,6 +50,10 @@ namespace CommonLibrary
|
||||
/// </summary>
|
||||
public string Announcement { get; set; } = "测试公告";
|
||||
/// <summary>
|
||||
/// 数据库连接字符串
|
||||
/// </summary>
|
||||
public string SqlServerStr { get; set; } = string.Empty;
|
||||
/// <summary>
|
||||
/// 是否允许账户登录,超级管理员账户除外
|
||||
/// </summary>
|
||||
public bool Can_Account_Login { get; set; } = true;
|
||||
@@ -163,6 +167,7 @@ namespace CommonLibrary
|
||||
{ nameof(WhetherToEnableTrustedClientAuthentication),new JValue(WhetherToEnableTrustedClientAuthentication) },
|
||||
{ nameof(TrustedClientList),new JArray(TrustedClientList) },
|
||||
{ nameof(AllowLoginWhenFramewordVersionNotCheck), new JValue(AllowLoginWhenFramewordVersionNotCheck) },
|
||||
{ nameof(SqlServerStr), new JValue(SqlServerStr) },
|
||||
};
|
||||
return json.ToString();
|
||||
}
|
||||
@@ -179,7 +184,7 @@ namespace CommonLibrary
|
||||
AllowUserMultiOnline = SoftBasic.GetValueFromJsonObject(json, nameof(AllowUserMultiOnline), AllowUserMultiOnline);
|
||||
Account_Forbidden_Reason = SoftBasic.GetValueFromJsonObject(json, nameof(Account_Forbidden_Reason), Account_Forbidden_Reason);
|
||||
AllowLoginWhenFramewordVersionNotCheck = SoftBasic.GetValueFromJsonObject(json, nameof(AllowLoginWhenFramewordVersionNotCheck), AllowLoginWhenFramewordVersionNotCheck);
|
||||
|
||||
SqlServerStr = SoftBasic.GetValueFromJsonObject(json, nameof(SqlServerStr), SqlServerStr);
|
||||
|
||||
|
||||
if (json[nameof(SystemFactories)] != null)
|
||||
|
||||
@@ -118,6 +118,7 @@
|
||||
<DependentUpon>FormWaitInfomation.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="BasicSupport\SoftSettings.cs" />
|
||||
<Compile Include="DataBaseSupport\SqlServerSupport.cs" />
|
||||
<Compile Include="LocalizationSupport\ChineseLocalization.cs" />
|
||||
<Compile Include="LocalizationSupport\EnglishLocalization.cs" />
|
||||
<Compile Include="LocalizationSupport\Localization.cs" />
|
||||
|
||||
19
CommonLibrary/DataBaseSupport/SqlServerSupport.cs
Normal file
19
CommonLibrary/DataBaseSupport/SqlServerSupport.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace CommonLibrary.DataBaseSupport
|
||||
{
|
||||
/// <summary>
|
||||
/// 使用SQL SERVER服务器的时的数据支持
|
||||
/// </summary>
|
||||
public class SqlServerSupport
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据库的连接字符串,该信息应来源于服务器保存的连接字符串
|
||||
/// </summary>
|
||||
public static string ConnectionString { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -44,7 +44,7 @@ namespace CommonLibrary
|
||||
**************************************************************************/
|
||||
|
||||
|
||||
SoftBasic.FrameworkVersion = new SystemVersion("1.7.10");
|
||||
SoftBasic.FrameworkVersion = new SystemVersion("1.7.11");
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user