diff --git a/Bootstrap.DataAccess/Dict.cs b/Bootstrap.DataAccess/Dict.cs
index 0b808899..c698c7e6 100644
--- a/Bootstrap.DataAccess/Dict.cs
+++ b/Bootstrap.DataAccess/Dict.cs
@@ -1,4 +1,4 @@
-using Bootstrap.Security;
+using Bootstrap.Security;
using Bootstrap.Security.DataAccess;
using System;
using System.Collections.Generic;
@@ -43,9 +43,7 @@ namespace Bootstrap.DataAccess
///
/// 保存网站个性化设置
///
- ///
- ///
- ///
+ ///
///
public virtual bool SaveSettings(BootstrapDict dict)
{
@@ -83,7 +81,7 @@ namespace Bootstrap.DataAccess
///
public virtual string RetrieveActiveTheme()
{
- var theme = DictHelper.RetrieveDicts().Where(d => d.Name == "使用样式" && d.Category == "当前样式" && d.Define == 0).FirstOrDefault();
+ var theme = DictHelper.RetrieveDicts().FirstOrDefault(d => d.Name == "使用样式" && d.Category == "当前样式" && d.Define == 0);
return theme == null ? string.Empty : (theme.Code.Equals("site.css", StringComparison.OrdinalIgnoreCase) ? string.Empty : theme.Code);
}
@@ -126,7 +124,6 @@ namespace Bootstrap.DataAccess
///
/// 通过数据库获得所有字典表配置信息,缓存Key=DictHelper-RetrieveDicts
///
- /// 数据库连接实例
///
public virtual IEnumerable RetrieveDicts() => DbHelper.RetrieveDicts();
}