mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Add disable XML reading configuration
This commit is contained in:
@@ -151,6 +151,10 @@ namespace SqlSugar
|
||||
/// <returns>the text contents of this XML element node</returns>
|
||||
public string GetXElementNodeValue(Type entityType, string nodeAttributeName)
|
||||
{
|
||||
if (this.Context.CurrentConnectionConfig?.MoreSettings?.IsNoReadXmlDescription == true)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
var path = entityType.Assembly.Location;
|
||||
if (string.IsNullOrEmpty(path))
|
||||
{
|
||||
|
@@ -17,5 +17,6 @@ namespace SqlSugar
|
||||
public int DefaultCacheDurationInSeconds { get; set; }
|
||||
public bool? TableEnumIsString { get; set; }
|
||||
public DateTime? DbMinDate { get; set; } = Convert.ToDateTime("1900-01-01");
|
||||
public bool IsNoReadXmlDescription { get; set; }
|
||||
}
|
||||
}
|
||||
|
@@ -173,7 +173,9 @@ namespace SqlSugar
|
||||
IsWithNoLockQuery = it.MoreSettings.IsWithNoLockQuery,
|
||||
TableEnumIsString = it.MoreSettings.TableEnumIsString,
|
||||
DisableMillisecond = it.MoreSettings.DisableMillisecond,
|
||||
DbMinDate=it.MoreSettings.DbMinDate
|
||||
DbMinDate=it.MoreSettings.DbMinDate,
|
||||
IsNoReadXmlDescription=it.MoreSettings.IsNoReadXmlDescription
|
||||
|
||||
},
|
||||
SqlMiddle = it.SqlMiddle == null ? null : new SqlMiddle
|
||||
{
|
||||
|
Reference in New Issue
Block a user