From b6d490ea3d008449dd6305e1ab18c3bd6c402cd2 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Tue, 7 May 2019 15:30:13 +0800 Subject: [PATCH] Update Demo --- Src/Asp.Net/SqlServerTest/Demo/DemoD_DbFirst.cs | 4 ++++ Src/Asp.Net/SqlServerTest/Demo/Democ_GobalFilter.cs | 3 +++ 2 files changed, 7 insertions(+) diff --git a/Src/Asp.Net/SqlServerTest/Demo/DemoD_DbFirst.cs b/Src/Asp.Net/SqlServerTest/Demo/DemoD_DbFirst.cs index 703ab757e..f6d932ad2 100644 --- a/Src/Asp.Net/SqlServerTest/Demo/DemoD_DbFirst.cs +++ b/Src/Asp.Net/SqlServerTest/Demo/DemoD_DbFirst.cs @@ -10,6 +10,8 @@ namespace OrmTest { public static void Init() { + Console.WriteLine(); + Console.WriteLine("#### DbFirst Start ####"); SqlSugarClient db = new SqlSugarClient(new ConnectionConfig() { DbType = DbType.SqlServer, @@ -62,6 +64,8 @@ namespace OrmTest } } db.DbFirst.IsCreateAttribute().CreateClassFile("c:\\Demo\\8", "Models"); + + Console.WriteLine("#### DbFirst End ####"); } } } diff --git a/Src/Asp.Net/SqlServerTest/Demo/Democ_GobalFilter.cs b/Src/Asp.Net/SqlServerTest/Demo/Democ_GobalFilter.cs index 2d5fbf40d..112910642 100644 --- a/Src/Asp.Net/SqlServerTest/Demo/Democ_GobalFilter.cs +++ b/Src/Asp.Net/SqlServerTest/Demo/Democ_GobalFilter.cs @@ -10,6 +10,8 @@ namespace OrmTest { public static void Init() { + Console.WriteLine(""); + Console.WriteLine("#### Filter Start ####"); var db = GetInstance(); @@ -30,6 +32,7 @@ namespace OrmTest var sql4 = db.Queryable().Filter("Myfilter",isDisabledGobalFilter:true).ToSql();//only Myfilter //SELECT [Id],[Name],[Price],[CreateTime] FROM [Order] WHERE Name='jack' Console.WriteLine(sql4); + Console.WriteLine("#### Filter End ####"); }