Skip to content

Commit 18c9ae9

Browse files
committed
还原测试用例
1 parent aa13fc4 commit 18c9ae9

File tree

5 files changed

+13
-22
lines changed

5 files changed

+13
-22
lines changed

FreeSql.DbContext/FreeSql.DbContext.xml

Lines changed: 9 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

FreeSql.Tests/FreeSql.Tests/SqlServer/SqlServerCodeFirstTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,8 +612,8 @@ class 测试中文表
612612
[Fact]
613613
public void AddUniques()
614614
{
615-
g.sqlserver.CodeFirst.SyncStructure<AddUniquesInfo>();
616615
var sql = g.sqlserver.CodeFirst.GetComparisonDDLStatements<AddUniquesInfo>();
616+
g.sqlserver.CodeFirst.SyncStructure<AddUniquesInfo>();
617617
g.sqlserver.CodeFirst.SyncStructure(typeof(AddUniquesInfo), "AddUniquesInfo1");
618618
}
619619
[Table(Name = "AddUniquesInfo", OldName = "AddUniquesInfo2")]

Providers/FreeSql.Provider.ClickHouse/ClickHouseCodeFirst.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ object LocalExecuteScalar(string db, string sql)
480480
using (var cmd = conn.Value.CreateCommand())
481481
{
482482
cmd.CommandText = sql;
483-
cmd.CommandType = CommandType.Text;
483+
cmd.CommandType = CommandType.Text;
484484
var before = new Aop.CommandBeforeEventArgs(cmd);
485485
this._orm?.Aop.CommandBeforeHandler?.Invoke(this._orm, before);
486486
return cmd.ExecuteScalar();

Providers/FreeSql.Provider.Custom/MySql/CustomMySqlCodeFirst.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ protected override string GetComparisonDDLStatements(params TypeAndName[] object
7878
{
7979
Object<DbConnection> conn = null;
8080
string database = null;
81-
81+
8282
try
8383
{
8484
conn = _orm.Ado.MasterPool.Get(TimeSpan.FromSeconds(5));

Providers/FreeSql.Provider.GBase/GBaseCodeFirst.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ object LocalExecuteScalar(string db, string sql)
186186
using (var cmd = conn.Value.CreateCommand())
187187
{
188188
cmd.CommandText = sql;
189-
cmd.CommandType = CommandType.Text;
189+
cmd.CommandType = CommandType.Text;
190190
var before = new Aop.CommandBeforeEventArgs(cmd);
191191
this._orm?.Aop.CommandBeforeHandler?.Invoke(this._orm, before);
192192
return cmd.ExecuteScalar();

0 commit comments

Comments
 (0)