From a43eebc5cbead85aaebae401f2175254a1e0053e Mon Sep 17 00:00:00 2001 From: cdefg198 <278955734@qq.com> Date: Fri, 29 Mar 2019 09:49:40 +0800 Subject: [PATCH] Update FtsInterceptor.cs remove parameter DbType --- Fissoft.EntityFramework.Fts/FtsInterceptor.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Fissoft.EntityFramework.Fts/FtsInterceptor.cs b/Fissoft.EntityFramework.Fts/FtsInterceptor.cs index 96c0551..60d8e26 100644 --- a/Fissoft.EntityFramework.Fts/FtsInterceptor.cs +++ b/Fissoft.EntityFramework.Fts/FtsInterceptor.cs @@ -90,8 +90,8 @@ private static string ReplacePropertyWithParameterKeyword(FtsSetting setting, st var value = (string) parameter.Value; if (value.IndexOf(flag) >= 0) { - parameter.Size = 4096; - parameter.DbType = DbType.AnsiStringFixedLength; + //parameter.Size = 4096; + //parameter.DbType = DbType.AnsiStringFixedLength; value = value.Replace(flag, ""); // remove prefix we added n linq query value = value.Substring(1, value.Length - 2); @@ -188,4 +188,4 @@ public void ScalarExecuted(DbCommand command, DbCommandInterceptionContext