diff --git a/Bin/Debug/CommonControls/.NET4 示例/Itrycn_Project.exe b/Bin/Debug/CommonControls/.NET4 示例/Itrycn_Project.exe
index 9c18679..7b69546 100644
Binary files a/Bin/Debug/CommonControls/.NET4 示例/Itrycn_Project.exe and b/Bin/Debug/CommonControls/.NET4 示例/Itrycn_Project.exe differ
diff --git a/Bin/Debug/CommonControls/.NET4 示例/Itrycn_Project2.exe b/Bin/Debug/CommonControls/.NET4 示例/Itrycn_Project2.exe
index 5651bc4..e07908f 100644
Binary files a/Bin/Debug/CommonControls/.NET4 示例/Itrycn_Project2.exe and b/Bin/Debug/CommonControls/.NET4 示例/Itrycn_Project2.exe differ
diff --git a/Bin/Debug/CommonControls/.NET4 示例/MyDb.dll b/Bin/Debug/CommonControls/.NET4 示例/MyDb.dll
index 2a99a45..db2d464 100644
Binary files a/Bin/Debug/CommonControls/.NET4 示例/MyDb.dll and b/Bin/Debug/CommonControls/.NET4 示例/MyDb.dll differ
diff --git a/Bin/Debug/CommonControls/.NET4 示例/MyDb.xml b/Bin/Debug/CommonControls/.NET4 示例/MyDb.xml
index 5fe694c..e47fe24 100644
--- a/Bin/Debug/CommonControls/.NET4 示例/MyDb.xml
+++ b/Bin/Debug/CommonControls/.NET4 示例/MyDb.xml
@@ -1262,23 +1262,61 @@
+
+
+ 判断时间是否在指定时间上
+
+
+
+
+
+
+
+
+ 判断时间是否在指定时间上
+
+
+
+
+
+
+
+
+
+ 判断时间是否在指定日期
+
+
+
+
+
+
+
+
+ 判断时间是否在指定日期
+
+
+
+
+
+
+
- 转换DateTime类型到日期时间字符串
+ 转换DateTime类型到日期时间字符串(例如 2000-01-01 08:08:08)
- 转换DateTime类型到日期字符串
+ 转换DateTime类型到日期字符串(例如 2000-01-01)
- 转换DateTime类型到日期星期字符串
+ 转换DateTime类型到日期星期字符串(例如 2000-01-01 星期六)
@@ -8619,11 +8657,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Bin/Debug/CommonControls/.NET4 示例/MyDb_SQLite.dll b/Bin/Debug/CommonControls/.NET4 示例/MyDb_SQLite.dll
index 6628d3c..56eedcb 100644
Binary files a/Bin/Debug/CommonControls/.NET4 示例/MyDb_SQLite.dll and b/Bin/Debug/CommonControls/.NET4 示例/MyDb_SQLite.dll differ
diff --git a/Bin/Debug/CommonControls/.NET4 示例/RyPrint.dll b/Bin/Debug/CommonControls/.NET4 示例/RyPrint.dll
index fc2b373..24eea18 100644
Binary files a/Bin/Debug/CommonControls/.NET4 示例/RyPrint.dll and b/Bin/Debug/CommonControls/.NET4 示例/RyPrint.dll differ
diff --git a/Bin/Debug/CommonControls/.NET4 示例/UserDb/Win.dat b/Bin/Debug/CommonControls/.NET4 示例/UserDb/Win.dat
index 156becd..6dce1f1 100644
--- a/Bin/Debug/CommonControls/.NET4 示例/UserDb/Win.dat
+++ b/Bin/Debug/CommonControls/.NET4 示例/UserDb/Win.dat
@@ -1,2 +1,2 @@
[Money_Op]
-hwnd=3813034
+hwnd=3742496
diff --git a/Bin/Debug/CommonControls/.NET4 示例/cUpdate.dat b/Bin/Debug/CommonControls/.NET4 示例/cUpdate.dat
index e0b2a4b..1a45b61 100644
--- a/Bin/Debug/CommonControls/.NET4 示例/cUpdate.dat
+++ b/Bin/Debug/CommonControls/.NET4 示例/cUpdate.dat
@@ -1,4 +1,4 @@
-
+
\ No newline at end of file
diff --git a/Bin/Debug/CommonControls/.NET4 示例/ryControls.dll b/Bin/Debug/CommonControls/.NET4 示例/ryControls.dll
index 052ef31..0403503 100644
Binary files a/Bin/Debug/CommonControls/.NET4 示例/ryControls.dll and b/Bin/Debug/CommonControls/.NET4 示例/ryControls.dll differ
diff --git a/Bin/Debug/CommonControls/.NET4 示例/ryUpdate.dll b/Bin/Debug/CommonControls/.NET4 示例/ryUpdate.dll
index 63717ef..aab047b 100644
Binary files a/Bin/Debug/CommonControls/.NET4 示例/ryUpdate.dll and b/Bin/Debug/CommonControls/.NET4 示例/ryUpdate.dll differ
diff --git a/Bin/Debug/CommonControls/.NET4/MyDb.dll b/Bin/Debug/CommonControls/.NET4/MyDb.dll
index 2a99a45..db2d464 100644
Binary files a/Bin/Debug/CommonControls/.NET4/MyDb.dll and b/Bin/Debug/CommonControls/.NET4/MyDb.dll differ
diff --git a/Bin/Debug/CommonControls/.NET4/MyDb.xml b/Bin/Debug/CommonControls/.NET4/MyDb.xml
index 5fe694c..e47fe24 100644
--- a/Bin/Debug/CommonControls/.NET4/MyDb.xml
+++ b/Bin/Debug/CommonControls/.NET4/MyDb.xml
@@ -1262,23 +1262,61 @@
+
+
+ 判断时间是否在指定时间上
+
+
+
+
+
+
+
+
+ 判断时间是否在指定时间上
+
+
+
+
+
+
+
+
+
+ 判断时间是否在指定日期
+
+
+
+
+
+
+
+
+ 判断时间是否在指定日期
+
+
+
+
+
+
+
- 转换DateTime类型到日期时间字符串
+ 转换DateTime类型到日期时间字符串(例如 2000-01-01 08:08:08)
- 转换DateTime类型到日期字符串
+ 转换DateTime类型到日期字符串(例如 2000-01-01)
- 转换DateTime类型到日期星期字符串
+ 转换DateTime类型到日期星期字符串(例如 2000-01-01 星期六)
@@ -8619,11 +8657,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Bin/Debug/CommonControls/.NET4/MyDb_MySQL.dll b/Bin/Debug/CommonControls/.NET4/MyDb_MySQL.dll
index 60906ce..6b65f96 100644
Binary files a/Bin/Debug/CommonControls/.NET4/MyDb_MySQL.dll and b/Bin/Debug/CommonControls/.NET4/MyDb_MySQL.dll differ
diff --git a/Bin/Debug/CommonControls/.NET4/MyDb_SQLite.dll b/Bin/Debug/CommonControls/.NET4/MyDb_SQLite.dll
index 6628d3c..56eedcb 100644
Binary files a/Bin/Debug/CommonControls/.NET4/MyDb_SQLite.dll and b/Bin/Debug/CommonControls/.NET4/MyDb_SQLite.dll differ
diff --git a/Bin/Debug/CommonControls/.NET4/RyPrint.dll b/Bin/Debug/CommonControls/.NET4/RyPrint.dll
index fc2b373..24eea18 100644
Binary files a/Bin/Debug/CommonControls/.NET4/RyPrint.dll and b/Bin/Debug/CommonControls/.NET4/RyPrint.dll differ
diff --git a/Bin/Debug/CommonControls/.NET4/ryControls.dll b/Bin/Debug/CommonControls/.NET4/ryControls.dll
index 052ef31..0403503 100644
Binary files a/Bin/Debug/CommonControls/.NET4/ryControls.dll and b/Bin/Debug/CommonControls/.NET4/ryControls.dll differ
diff --git a/Bin/Debug/CommonControls/.NET4/ryUpdate.dll b/Bin/Debug/CommonControls/.NET4/ryUpdate.dll
index 63717ef..aab047b 100644
Binary files a/Bin/Debug/CommonControls/.NET4/ryUpdate.dll and b/Bin/Debug/CommonControls/.NET4/ryUpdate.dll differ
diff --git a/Bin/Release/CommonControls/.NET4 示例/Itrycn_Project.exe b/Bin/Release/CommonControls/.NET4 示例/Itrycn_Project.exe
index af67275..a8e100d 100644
Binary files a/Bin/Release/CommonControls/.NET4 示例/Itrycn_Project.exe and b/Bin/Release/CommonControls/.NET4 示例/Itrycn_Project.exe differ
diff --git a/Bin/Release/CommonControls/.NET4 示例/MyDb.dll b/Bin/Release/CommonControls/.NET4 示例/MyDb.dll
index 92e3616..c236c46 100644
Binary files a/Bin/Release/CommonControls/.NET4 示例/MyDb.dll and b/Bin/Release/CommonControls/.NET4 示例/MyDb.dll differ
diff --git a/Bin/Release/CommonControls/.NET4 示例/MyDb.xml b/Bin/Release/CommonControls/.NET4 示例/MyDb.xml
index 26d7569..e0a7c91 100644
--- a/Bin/Release/CommonControls/.NET4 示例/MyDb.xml
+++ b/Bin/Release/CommonControls/.NET4 示例/MyDb.xml
@@ -1262,23 +1262,61 @@
+
+
+ 判断时间是否在指定时间上
+
+
+
+
+
+
+
+
+ 判断时间是否在指定时间上
+
+
+
+
+
+
+
+
+
+ 判断时间是否在指定日期
+
+
+
+
+
+
+
+
+ 判断时间是否在指定日期
+
+
+
+
+
+
+
- 转换DateTime类型到日期时间字符串
+ 转换DateTime类型到日期时间字符串(例如 2000-01-01 08:08:08)
- 转换DateTime类型到日期字符串
+ 转换DateTime类型到日期字符串(例如 2000-01-01)
- 转换DateTime类型到日期星期字符串
+ 转换DateTime类型到日期星期字符串(例如 2000-01-01 星期六)
@@ -8592,11 +8630,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Bin/Release/CommonControls/.NET4 示例/MyDb_SQLite.dll b/Bin/Release/CommonControls/.NET4 示例/MyDb_SQLite.dll
index dd2dd83..576549a 100644
Binary files a/Bin/Release/CommonControls/.NET4 示例/MyDb_SQLite.dll and b/Bin/Release/CommonControls/.NET4 示例/MyDb_SQLite.dll differ
diff --git a/Bin/Release/CommonControls/.NET4 示例/RyPrint.dll b/Bin/Release/CommonControls/.NET4 示例/RyPrint.dll
index d91b2b7..64a1ddb 100644
Binary files a/Bin/Release/CommonControls/.NET4 示例/RyPrint.dll and b/Bin/Release/CommonControls/.NET4 示例/RyPrint.dll differ
diff --git a/Bin/Release/CommonControls/.NET4 示例/ryControls.dll b/Bin/Release/CommonControls/.NET4 示例/ryControls.dll
index 0381488..58e6ef2 100644
Binary files a/Bin/Release/CommonControls/.NET4 示例/ryControls.dll and b/Bin/Release/CommonControls/.NET4 示例/ryControls.dll differ
diff --git a/Bin/Release/CommonControls/.NET4 示例/ryUpdate.dll b/Bin/Release/CommonControls/.NET4 示例/ryUpdate.dll
index 78faaf0..d61e7a5 100644
Binary files a/Bin/Release/CommonControls/.NET4 示例/ryUpdate.dll and b/Bin/Release/CommonControls/.NET4 示例/ryUpdate.dll differ
diff --git a/Bin/Release/CommonControls/.NET4/MyDb.dll b/Bin/Release/CommonControls/.NET4/MyDb.dll
index 92e3616..c236c46 100644
Binary files a/Bin/Release/CommonControls/.NET4/MyDb.dll and b/Bin/Release/CommonControls/.NET4/MyDb.dll differ
diff --git a/Bin/Release/CommonControls/.NET4/MyDb.xml b/Bin/Release/CommonControls/.NET4/MyDb.xml
index 26d7569..e0a7c91 100644
--- a/Bin/Release/CommonControls/.NET4/MyDb.xml
+++ b/Bin/Release/CommonControls/.NET4/MyDb.xml
@@ -1262,23 +1262,61 @@
+
+
+ 判断时间是否在指定时间上
+
+
+
+
+
+
+
+
+ 判断时间是否在指定时间上
+
+
+
+
+
+
+
+
+
+ 判断时间是否在指定日期
+
+
+
+
+
+
+
+
+ 判断时间是否在指定日期
+
+
+
+
+
+
+
- 转换DateTime类型到日期时间字符串
+ 转换DateTime类型到日期时间字符串(例如 2000-01-01 08:08:08)
- 转换DateTime类型到日期字符串
+ 转换DateTime类型到日期字符串(例如 2000-01-01)
- 转换DateTime类型到日期星期字符串
+ 转换DateTime类型到日期星期字符串(例如 2000-01-01 星期六)
@@ -8592,11 +8630,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Bin/Release/CommonControls/.NET4/MyDb_MySQL.dll b/Bin/Release/CommonControls/.NET4/MyDb_MySQL.dll
index 48d559a..6431cab 100644
Binary files a/Bin/Release/CommonControls/.NET4/MyDb_MySQL.dll and b/Bin/Release/CommonControls/.NET4/MyDb_MySQL.dll differ
diff --git a/Bin/Release/CommonControls/.NET4/MyDb_SQLite.dll b/Bin/Release/CommonControls/.NET4/MyDb_SQLite.dll
index dd2dd83..576549a 100644
Binary files a/Bin/Release/CommonControls/.NET4/MyDb_SQLite.dll and b/Bin/Release/CommonControls/.NET4/MyDb_SQLite.dll differ
diff --git a/Bin/Release/CommonControls/.NET4/RyPrint.dll b/Bin/Release/CommonControls/.NET4/RyPrint.dll
index d91b2b7..64a1ddb 100644
Binary files a/Bin/Release/CommonControls/.NET4/RyPrint.dll and b/Bin/Release/CommonControls/.NET4/RyPrint.dll differ
diff --git a/Bin/Release/CommonControls/.NET4/ryControls.dll b/Bin/Release/CommonControls/.NET4/ryControls.dll
index 0381488..58e6ef2 100644
Binary files a/Bin/Release/CommonControls/.NET4/ryControls.dll and b/Bin/Release/CommonControls/.NET4/ryControls.dll differ
diff --git a/Bin/Release/CommonControls/.NET4/ryUpdate.dll b/Bin/Release/CommonControls/.NET4/ryUpdate.dll
index 78faaf0..d61e7a5 100644
Binary files a/Bin/Release/CommonControls/.NET4/ryUpdate.dll and b/Bin/Release/CommonControls/.NET4/ryUpdate.dll differ
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9a936f6..9a6ae48 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,15 @@
-### 2022-02-21更新
+### 2022-03-01更新
+------
+#### MyDbV4 V3.0.2203.0101
+- *.[新增]新增IsInTime和IsInDay扩展函数。
+- *.[改进]完善部分注释,更加易懂。
+- *.[改进]HttpServer类新增默认对postdata内容进行解析。
+- *.[修复]修复PinYin类对《鑫》字转换错误的BUG。
+
+#### MyDb_MySQLV4 V3.0.2203.0101
+- *.[改进]MySQL的连接字符串自动追加Allow User Variables=True;
+
+### 2022-02-21更新
------
#### MyDbV4 V3.0.2202.2101
- *.[新增]新增HttpServer类,可以非常方便的建立http服务器。
diff --git a/Source/Itrycn_Project2/FrmStart.cs b/Source/Itrycn_Project2/FrmStart.cs
index 30ddd00..262f38a 100644
--- a/Source/Itrycn_Project2/FrmStart.cs
+++ b/Source/Itrycn_Project2/FrmStart.cs
@@ -180,6 +180,7 @@ namespace Itrycn_Project2
private void FrmStart_Load(object sender, EventArgs e)
{
+ ryCommon.PinYin.Convert("李凤鑫");
Public_Config.LoadSetting();
//Itrycn_Project.Itrycn_Db.CreateTable();
//var dbver = Itrycn_Db.GetDbVer();
diff --git a/Source/MyDb/DbManage/PinYin.cs b/Source/MyDb/DbManage/PinYin.cs
index a413916..6f961db 100644
--- a/Source/MyDb/DbManage/PinYin.cs
+++ b/Source/MyDb/DbManage/PinYin.cs
@@ -125,6 +125,8 @@ namespace ryCommon
// 修正部分文字
if (chrAsc == -9254) // 修正“圳”字
pyString += "Zhen";
+ else if (chrAsc == -2354) // 修正“鑫”字
+ pyString += "Xin";
else
{
for (int i = (pyValue.Length - 1); i >= 0; i--)
@@ -237,6 +239,8 @@ namespace ryCommon
// 修正部分文字
if (chrAsc == -9254) // 修正“圳”字
pyString += "z";
+ else if (chrAsc == -2354) // 修正“鑫”字
+ pyString += "x";
else
{
for (int i = (pyValue.Length - 1); i >= 0; i--)
diff --git a/Source/MyDb/DbManage/VarExtension.cs b/Source/MyDb/DbManage/VarExtension.cs
index a96e724..14292d9 100644
--- a/Source/MyDb/DbManage/VarExtension.cs
+++ b/Source/MyDb/DbManage/VarExtension.cs
@@ -336,7 +336,61 @@ namespace ryCommon
catch { return 0d; }
}
///
- /// 转换DateTime类型到日期时间字符串
+ /// 判断时间是否在指定时间上
+ ///
+ ///
+ ///
+ ///
+ ///
+ static public bool IsInTime(this DateTime input,int Hour,int Minute)
+ {
+ if(input == null) { return false; }
+ if(input.Hour==Hour && input.Minute == Minute) { return true; }
+ return false;
+ }
+ ///
+ /// 判断时间是否在指定时间上
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ static public bool IsInTime(this DateTime input, int Hour, int Minute,int Second)
+ {
+ if (input == null) { return false; }
+ if (input.Hour == Hour && input.Minute == Minute && input.Second== Second) { return true; }
+ return false;
+ }
+ ///
+ /// 判断时间是否在指定日期
+ ///
+ ///
+ ///
+ ///
+ ///
+ static public bool IsInDay(this DateTime input, int Month, int Day)
+ {
+ if (input == null) { return false; }
+ if (input.Month == Month && input.Day == Day) { return true; }
+ return false;
+ }
+ ///
+ /// 判断时间是否在指定日期
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ static public bool IsInDay(this DateTime input,int Year, int Month, int Day)
+ {
+ if (input == null) { return false; }
+ if (input.Year == Year && input.Month == Month && input.Day == Day) { return true; }
+ return false;
+ }
+ ///
+ /// 转换DateTime类型到日期时间字符串(例如 2000-01-01 08:08:08)
///
///
///
@@ -345,7 +399,7 @@ namespace ryCommon
return input.ToString("yyyy-MM-dd HH:mm:ss");
}
///
- /// 转换DateTime类型到日期字符串
+ /// 转换DateTime类型到日期字符串(例如 2000-01-01)
///
///
///
@@ -354,7 +408,7 @@ namespace ryCommon
return input.ToString("yyyy-MM-dd");
}
///
- /// 转换DateTime类型到日期星期字符串
+ /// 转换DateTime类型到日期星期字符串(例如 2000-01-01 星期六)
///
///
///
@@ -682,6 +736,7 @@ namespace ryCommon
///
static public string Get(this Tuple>> input,string Name,string defValue)
{
+ if (input == null) { return defValue; }
try
{
return RyWeb.WebDecode.GetParam(input, Name, defValue);
diff --git a/Source/MyDb/Properties/AssemblyInfo.cs b/Source/MyDb/Properties/AssemblyInfo.cs
index e3df86d..fdc5e5b 100644
--- a/Source/MyDb/Properties/AssemblyInfo.cs
+++ b/Source/MyDb/Properties/AssemblyInfo.cs
@@ -32,5 +32,5 @@ using System;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
// 方法是按如下所示使用“*”: :
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("3.0.2202.2101")]
-[assembly: AssemblyFileVersion("3.0.2202.2101")]
\ No newline at end of file
+[assembly: AssemblyVersion("3.0.2203.0101")]
+[assembly: AssemblyFileVersion("3.0.2203.0101")]
\ No newline at end of file
diff --git a/Source/MyDb/RyWeb/HttpServer.cs b/Source/MyDb/RyWeb/HttpServer.cs
index 1aa41d3..fce9e12 100644
--- a/Source/MyDb/RyWeb/HttpServer.cs
+++ b/Source/MyDb/RyWeb/HttpServer.cs
@@ -6,7 +6,7 @@ using System.Linq;
using System.Net;
using System.Text;
using System.Threading;
-
+using ryCommon;
namespace RyWeb
{
///
@@ -180,7 +180,8 @@ namespace RyWeb
UrlReferrer = req.UrlReferrer
};
var sr = new StreamReader(req.InputStream, Encoding.GetEncoding("GB2312"));
- e.PostData= sr.ReadToEnd();
+ e.PostDataStr = sr.ReadToEnd();
+ e.PostData= RyWeb.WebDecode.UrlToData(e.PostDataStr);
sr.Close();
OnHandlePOSTRequest?.Invoke(this, e);
resp.StatusCode = (int)e.StatusCode;
@@ -206,7 +207,39 @@ namespace RyWeb
///
///
///
- public string PostData { get; internal set; } = "";
+ public string PostDataStr { get; internal set; } = "";
+ ///
+ ///
+ ///
+ internal Tuple>> PostData { get; set; }
+ ///
+ ///
+ ///
+ public string GetPostData(string Param)
+ {
+ return PostData.Get(Param);
+ }
+ ///
+ ///
+ ///
+ public string GetPostData(string Param,string defValue)
+ {
+ return PostData.Get(Param, defValue);
+ }
+ ///
+ ///
+ ///
+ public int GetPostData(string Param,int defValue)
+ {
+ return PostData.Get(Param, defValue);
+ }
+ ///
+ ///
+ ///
+ public bool GetPostData(string Param, bool defValue)
+ {
+ return PostData.Get(Param, defValue);
+ }
///
///
///
diff --git a/Source/MyDb_MySQL/Properties/AssemblyInfo.cs b/Source/MyDb_MySQL/Properties/AssemblyInfo.cs
index f0c4788..9d001e7 100644
--- a/Source/MyDb_MySQL/Properties/AssemblyInfo.cs
+++ b/Source/MyDb_MySQL/Properties/AssemblyInfo.cs
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
// 方法是按如下所示使用“*”: :
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("3.0.2201.1101")]
-[assembly: AssemblyFileVersion("3.0.2201.1101")]
\ No newline at end of file
+[assembly: AssemblyVersion("3.0.2203.0101")]
+[assembly: AssemblyFileVersion("3.0.2203.0101")]
\ No newline at end of file
diff --git a/Source/MyDb_MySQL/mySqlDataProvider.cs b/Source/MyDb_MySQL/mySqlDataProvider.cs
index c2a25d7..6757acd 100644
--- a/Source/MyDb_MySQL/mySqlDataProvider.cs
+++ b/Source/MyDb_MySQL/mySqlDataProvider.cs
@@ -7,6 +7,7 @@ using DataParameter =MySql.Data.MySqlClient.MySqlParameter;
using DataCommand = MySql.Data.MySqlClient.MySqlCommand;
using DataAdapter = MySql.Data.MySqlClient.MySqlDataAdapter;
using ryCommonDb;
+using ryCommon;
namespace ryCommonDb
{
@@ -23,7 +24,13 @@ namespace ryCommonDb
///
public int ConnDb(string sql)
{
- myDb.fv_ConnStr = sql;
+ var _sql = sql;
+ if(_sql.IndexOfEx("Allow User Variables")<=0)
+ {
+ if (!_sql.EndsWith(";")) { _sql += ";"; }
+ _sql += "Allow User Variables=True;";
+ }
+ myDb.fv_ConnStr = _sql;
return myDb.ConnDb();
}
///
diff --git a/Source/公用控件组V35.sln b/Source/公用控件组V35.sln
deleted file mode 100644
index 2be12d7..0000000
--- a/Source/公用控件组V35.sln
+++ /dev/null
@@ -1,68 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 14
-VisualStudioVersion = 14.0.25420.1
-MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ryUpdateV35", "ryUpdate\ryUpdateV35.csproj", "{11A63E24-0257-4C54-A109-F1A609A52A62}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ryControlsV35", "ryControls\ryControlsV35.csproj", "{9ECA3A84-8545-4C4D-84D6-D23E3BDF2D90}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyDbV35", "MyDb\MyDbV35.csproj", "{B0F80073-D661-42D8-A512-8488D980B87E}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyDb_SQLiteV35", "MyDb_SQLite\MyDb_SQLiteV35.csproj", "{6B969CE8-D723-4B2C-A8FD-FAD2FB28FF01}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyDb_MSSQLV35", "MyDb_MSSQL\MyDb_MSSQLV35.csproj", "{631290D3-7CB8-4B62-833E-361C20A5F2E0}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Debug|x86 = Debug|x86
- Release|Any CPU = Release|Any CPU
- Release|x86 = Release|x86
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {11A63E24-0257-4C54-A109-F1A609A52A62}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {11A63E24-0257-4C54-A109-F1A609A52A62}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {11A63E24-0257-4C54-A109-F1A609A52A62}.Debug|x86.ActiveCfg = Debug|Any CPU
- {11A63E24-0257-4C54-A109-F1A609A52A62}.Debug|x86.Build.0 = Debug|Any CPU
- {11A63E24-0257-4C54-A109-F1A609A52A62}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {11A63E24-0257-4C54-A109-F1A609A52A62}.Release|Any CPU.Build.0 = Release|Any CPU
- {11A63E24-0257-4C54-A109-F1A609A52A62}.Release|x86.ActiveCfg = Release|Any CPU
- {11A63E24-0257-4C54-A109-F1A609A52A62}.Release|x86.Build.0 = Release|Any CPU
- {9ECA3A84-8545-4C4D-84D6-D23E3BDF2D90}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {9ECA3A84-8545-4C4D-84D6-D23E3BDF2D90}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {9ECA3A84-8545-4C4D-84D6-D23E3BDF2D90}.Debug|x86.ActiveCfg = Debug|x86
- {9ECA3A84-8545-4C4D-84D6-D23E3BDF2D90}.Debug|x86.Build.0 = Debug|x86
- {9ECA3A84-8545-4C4D-84D6-D23E3BDF2D90}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {9ECA3A84-8545-4C4D-84D6-D23E3BDF2D90}.Release|Any CPU.Build.0 = Release|Any CPU
- {9ECA3A84-8545-4C4D-84D6-D23E3BDF2D90}.Release|x86.ActiveCfg = Release|x86
- {9ECA3A84-8545-4C4D-84D6-D23E3BDF2D90}.Release|x86.Build.0 = Release|x86
- {B0F80073-D661-42D8-A512-8488D980B87E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {B0F80073-D661-42D8-A512-8488D980B87E}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {B0F80073-D661-42D8-A512-8488D980B87E}.Debug|x86.ActiveCfg = Debug|x86
- {B0F80073-D661-42D8-A512-8488D980B87E}.Debug|x86.Build.0 = Debug|x86
- {B0F80073-D661-42D8-A512-8488D980B87E}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {B0F80073-D661-42D8-A512-8488D980B87E}.Release|Any CPU.Build.0 = Release|Any CPU
- {B0F80073-D661-42D8-A512-8488D980B87E}.Release|x86.ActiveCfg = Release|x86
- {B0F80073-D661-42D8-A512-8488D980B87E}.Release|x86.Build.0 = Release|x86
- {6B969CE8-D723-4B2C-A8FD-FAD2FB28FF01}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {6B969CE8-D723-4B2C-A8FD-FAD2FB28FF01}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {6B969CE8-D723-4B2C-A8FD-FAD2FB28FF01}.Debug|x86.ActiveCfg = Debug|Any CPU
- {6B969CE8-D723-4B2C-A8FD-FAD2FB28FF01}.Debug|x86.Build.0 = Debug|Any CPU
- {6B969CE8-D723-4B2C-A8FD-FAD2FB28FF01}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {6B969CE8-D723-4B2C-A8FD-FAD2FB28FF01}.Release|Any CPU.Build.0 = Release|Any CPU
- {6B969CE8-D723-4B2C-A8FD-FAD2FB28FF01}.Release|x86.ActiveCfg = Release|Any CPU
- {6B969CE8-D723-4B2C-A8FD-FAD2FB28FF01}.Release|x86.Build.0 = Release|Any CPU
- {631290D3-7CB8-4B62-833E-361C20A5F2E0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {631290D3-7CB8-4B62-833E-361C20A5F2E0}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {631290D3-7CB8-4B62-833E-361C20A5F2E0}.Debug|x86.ActiveCfg = Debug|Any CPU
- {631290D3-7CB8-4B62-833E-361C20A5F2E0}.Debug|x86.Build.0 = Debug|Any CPU
- {631290D3-7CB8-4B62-833E-361C20A5F2E0}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {631290D3-7CB8-4B62-833E-361C20A5F2E0}.Release|Any CPU.Build.0 = Release|Any CPU
- {631290D3-7CB8-4B62-833E-361C20A5F2E0}.Release|x86.ActiveCfg = Release|Any CPU
- {631290D3-7CB8-4B62-833E-361C20A5F2E0}.Release|x86.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal