From 3cbef851ea22894bfbc33ca6dd6dbebce7d63f72 Mon Sep 17 00:00:00 2001 From: falcon <9504402@qq.com> Date: Thu, 8 Sep 2022 10:22:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Falcon.SugarApi/DatabaseDefinitions/SugarDbContext.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Falcon.SugarApi/DatabaseDefinitions/SugarDbContext.cs b/Falcon.SugarApi/DatabaseDefinitions/SugarDbContext.cs index 5f5dbb1..a8f201e 100644 --- a/Falcon.SugarApi/DatabaseDefinitions/SugarDbContext.cs +++ b/Falcon.SugarApi/DatabaseDefinitions/SugarDbContext.cs @@ -234,5 +234,12 @@ namespace Falcon.SugarApi.DatabaseDefinitions } #endregion + + /// + /// 数据库时间 + /// + public DateTime DbDateTime { + get => SqlFunc.GetDate(); + } } }