mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-15 05:13:27 +08:00
Update demo
This commit is contained in:
parent
ca72cbc2cc
commit
71f61fe36d
@ -2,6 +2,8 @@
|
||||
using System.Collections.Generic;
|
||||
using SqlSugar;
|
||||
using System.Linq;
|
||||
using SqlSugar.Extensions;
|
||||
|
||||
namespace OrmTest.UnitTest
|
||||
{
|
||||
public class UnitTestBase
|
||||
|
@ -59,7 +59,7 @@ namespace OrmTest.UnitTest
|
||||
SqlSugarClient db = new SqlSugarClient(new ConnectionConfig() { InitKeyType = InitKeyType.Attribute, ConnectionString = Config.ConnectionString, DbType = DbType.Oracle, IsAutoCloseConnection = true });
|
||||
db.Aop.OnLogExecuting = (sql, pars) =>
|
||||
{
|
||||
Console.WriteLine(sql + "\r\n" + db.RewritableMethods.SerializeObject(pars));
|
||||
Console.WriteLine(sql + "\r\n" + db.Utilities.SerializeObject(pars));
|
||||
Console.WriteLine();
|
||||
};
|
||||
return db;
|
||||
|
@ -2,6 +2,8 @@
|
||||
using System.Collections.Generic;
|
||||
using SqlSugar;
|
||||
using System.Linq;
|
||||
using SqlSugar.Extensions;
|
||||
|
||||
namespace OrmTest.UnitTest
|
||||
{
|
||||
public class UnitTestBase
|
||||
|
4
Src/Asp.Net/SqlServerTest/packages.config
Normal file
4
Src/Asp.Net/SqlServerTest/packages.config
Normal file
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="SqlSugar" version="5.0.2" targetFramework="net45" />
|
||||
</packages>
|
@ -2,6 +2,8 @@
|
||||
using System.Collections.Generic;
|
||||
using SqlSugar;
|
||||
using System.Linq;
|
||||
using SqlSugar.Extensions;
|
||||
|
||||
namespace OrmTest.UnitTest
|
||||
{
|
||||
public class UnitTestBase
|
||||
|
Loading…
Reference in New Issue
Block a user