mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 01:58:13 +08:00
-
This commit is contained in:
@@ -29,6 +29,11 @@ namespace OrmTest.UnitTest
|
||||
{
|
||||
using (var db = GetInstance())
|
||||
{
|
||||
db.Database.IsEnableLogEvent = true;
|
||||
db.Database.LogEventStarting = (sql,pars) =>
|
||||
{
|
||||
Console.WriteLine(sql+" " + pars);
|
||||
};
|
||||
//var list = db.Queryable<Student>()
|
||||
|
||||
// .Where(st => st.Id > 0)
|
||||
|
Reference in New Issue
Block a user