From 5c03d4f645feeda3434e7ccf1c8d98679c848281 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Thu, 21 Mar 2024 12:28:10 +0800 Subject: [PATCH] Synchronization code --- Src/Asp.Net/SqlSugar/Entities/ConnMoreSettings.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Asp.Net/SqlSugar/Entities/ConnMoreSettings.cs b/Src/Asp.Net/SqlSugar/Entities/ConnMoreSettings.cs index 181ecb14c..b5f20de01 100644 --- a/Src/Asp.Net/SqlSugar/Entities/ConnMoreSettings.cs +++ b/Src/Asp.Net/SqlSugar/Entities/ConnMoreSettings.cs @@ -18,7 +18,7 @@ namespace SqlSugar public bool IsAutoToUpper { get; set; } = true; public int DefaultCacheDurationInSeconds { get; set; } public bool? TableEnumIsString { get; set; } - public DateTime? DbMinDate { get; set; } = Convert.ToDateTime("1900-01-01"); + public DateTime? DbMinDate { get; set; } = DateTime.MinValue.Date.AddYears(1900 - 1); public bool IsNoReadXmlDescription { get; set; } public bool SqlServerCodeFirstNvarchar { get; set; } public bool SqliteCodeFirstEnableDefaultValue { get; set; }