|
@@ -237,6 +237,8 @@ namespace Hotline.Repository.SqlSugar.Extensions
|
|
|
|
|
|
Log.Warning("slow query ==> fileName: {fileName}, fileLine: {fileLine}, FirstMethodName: {FirstMethodName}",
|
|
|
fileName, fileLine, FirstMethodName);
|
|
|
+ Log.Warning(UtilMethods.GetNativeSql(sql, p));
|
|
|
+ Log.Warning("slow query totalSeconds: {sec}", db.Ado.SqlExecutionTime.TotalSeconds);
|
|
|
}
|
|
|
//相当于EF的 PrintToMiniProfiler
|
|
|
};
|
|
@@ -334,9 +336,4 @@ namespace Hotline.Repository.SqlSugar.Extensions
|
|
|
|
|
|
#endregion
|
|
|
}
|
|
|
-
|
|
|
- public class SqlSugarConst
|
|
|
- {
|
|
|
- public static string PrimaryKey = "Id";
|
|
|
- }
|
|
|
}
|