- 补充 Ado.Net 多表的扩展方法 Select<T1..T10>;

This commit is contained in:
28810
2020-08-16 15:28:49 +08:00
parent 7c89aafe79
commit 46c187e446
2 changed files with 117 additions and 0 deletions

View File

@ -1,6 +1,7 @@
using MySql.Data.MySqlClient;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using Xunit;
namespace FreeSql.Tests.AdoNetExtensions.MySqlConnectionExtensions {
@ -10,6 +11,12 @@ namespace FreeSql.Tests.AdoNetExtensions.MySqlConnectionExtensions {
public Methods() {
g.mysql.CodeFirst.SyncStructure<TestConnectionExt>();
using (var conn = new MySqlConnection(_connectString))
{
var fsql = conn.GetIFreeSql();
fsql.CodeFirst.IsNoneCommandParameter = true;
fsql.Aop.CommandBefore += (_, e) => Trace.WriteLine("SQL: " + e.Command.CommandText);
}
}
[Fact]