mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 04:18:16 +08:00
- 补充 Ado.Net 多表的扩展方法 Select<T1..T10>;
This commit is contained in:
@ -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]
|
||||
|
Reference in New Issue
Block a user