mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-17 05:40:56 +08:00
- 修复 System.MemoryExtensions.Contains 解析问题;#1993
This commit is contained in:
@@ -111,7 +111,10 @@ namespace FreeSql.ClickHouse
|
||||
if (objType?.FullName == "System.Byte[]") return null;
|
||||
|
||||
var argIndex = 0;
|
||||
if (objType == null && callExp.Method.DeclaringType == typeof(Enumerable))
|
||||
if (objType == null && (
|
||||
callExp.Method.DeclaringType == typeof(Enumerable) ||
|
||||
callExp.Method.DeclaringType.FullName == "System.MemoryExtensions"
|
||||
))
|
||||
{
|
||||
objExp = callExp.Arguments.FirstOrDefault();
|
||||
objType = objExp?.Type;
|
||||
|
||||
@@ -112,7 +112,10 @@ namespace FreeSql.Custom
|
||||
if (objType?.FullName == "System.Byte[]") return null;
|
||||
|
||||
var argIndex = 0;
|
||||
if (objType == null && callExp.Method.DeclaringType == typeof(Enumerable))
|
||||
if (objType == null && (
|
||||
callExp.Method.DeclaringType == typeof(Enumerable) ||
|
||||
callExp.Method.DeclaringType.FullName == "System.MemoryExtensions"
|
||||
))
|
||||
{
|
||||
objExp = callExp.Arguments.FirstOrDefault();
|
||||
objType = objExp?.Type;
|
||||
|
||||
@@ -108,7 +108,10 @@ namespace FreeSql.Custom.MySql
|
||||
if (objType?.FullName == "System.Byte[]") return null;
|
||||
|
||||
var argIndex = 0;
|
||||
if (objType == null && callExp.Method.DeclaringType == typeof(Enumerable))
|
||||
if (objType == null && (
|
||||
callExp.Method.DeclaringType == typeof(Enumerable) ||
|
||||
callExp.Method.DeclaringType.FullName == "System.MemoryExtensions"
|
||||
))
|
||||
{
|
||||
objExp = callExp.Arguments.FirstOrDefault();
|
||||
objType = objExp?.Type;
|
||||
|
||||
@@ -112,7 +112,10 @@ namespace FreeSql.Custom.Oracle
|
||||
if (objType?.FullName == "System.Byte[]") return null;
|
||||
|
||||
var argIndex = 0;
|
||||
if (objType == null && callExp.Method.DeclaringType == typeof(Enumerable))
|
||||
if (objType == null && (
|
||||
callExp.Method.DeclaringType == typeof(Enumerable) ||
|
||||
callExp.Method.DeclaringType.FullName == "System.MemoryExtensions"
|
||||
))
|
||||
{
|
||||
objExp = callExp.Arguments.FirstOrDefault();
|
||||
objType = objExp?.Type;
|
||||
|
||||
@@ -111,7 +111,10 @@ namespace FreeSql.Custom.PostgreSQL
|
||||
if (objType?.FullName == "System.Byte[]") return null;
|
||||
|
||||
var argIndex = 0;
|
||||
if (objType == null && callExp.Method.DeclaringType == typeof(Enumerable))
|
||||
if (objType == null && (
|
||||
callExp.Method.DeclaringType == typeof(Enumerable) ||
|
||||
callExp.Method.DeclaringType.FullName == "System.MemoryExtensions"
|
||||
))
|
||||
{
|
||||
objExp = callExp.Arguments.FirstOrDefault();
|
||||
objType = objExp?.Type;
|
||||
|
||||
@@ -118,7 +118,10 @@ namespace FreeSql.Custom.SqlServer
|
||||
if (objType?.FullName == "System.Byte[]") return null;
|
||||
|
||||
var argIndex = 0;
|
||||
if (objType == null && callExp.Method.DeclaringType == typeof(Enumerable))
|
||||
if (objType == null && (
|
||||
callExp.Method.DeclaringType == typeof(Enumerable) ||
|
||||
callExp.Method.DeclaringType.FullName == "System.MemoryExtensions"
|
||||
))
|
||||
{
|
||||
objExp = callExp.Arguments.FirstOrDefault();
|
||||
objType = objExp?.Type;
|
||||
|
||||
@@ -112,7 +112,10 @@ namespace FreeSql.Dameng
|
||||
if (objType?.FullName == "System.Byte[]") return null;
|
||||
|
||||
var argIndex = 0;
|
||||
if (objType == null && callExp.Method.DeclaringType == typeof(Enumerable))
|
||||
if (objType == null && (
|
||||
callExp.Method.DeclaringType == typeof(Enumerable) ||
|
||||
callExp.Method.DeclaringType.FullName == "System.MemoryExtensions"
|
||||
))
|
||||
{
|
||||
objExp = callExp.Arguments.FirstOrDefault();
|
||||
objType = objExp?.Type;
|
||||
|
||||
@@ -111,7 +111,10 @@ namespace FreeSql.Duckdb
|
||||
if (objType?.FullName == "System.Byte[]") return null;
|
||||
|
||||
var argIndex = 0;
|
||||
if (objType == null && callExp.Method.DeclaringType == typeof(Enumerable))
|
||||
if (objType == null && (
|
||||
callExp.Method.DeclaringType == typeof(Enumerable) ||
|
||||
callExp.Method.DeclaringType.FullName == "System.MemoryExtensions"
|
||||
))
|
||||
{
|
||||
objExp = callExp.Arguments.FirstOrDefault();
|
||||
objType = objExp?.Type;
|
||||
|
||||
@@ -109,7 +109,10 @@ namespace FreeSql.Firebird
|
||||
if (objType?.FullName == "System.Byte[]") return null;
|
||||
|
||||
var argIndex = 0;
|
||||
if (objType == null && callExp.Method.DeclaringType == typeof(Enumerable))
|
||||
if (objType == null && (
|
||||
callExp.Method.DeclaringType == typeof(Enumerable) ||
|
||||
callExp.Method.DeclaringType.FullName == "System.MemoryExtensions"
|
||||
))
|
||||
{
|
||||
objExp = callExp.Arguments.FirstOrDefault();
|
||||
objType = objExp?.Type;
|
||||
|
||||
@@ -109,7 +109,10 @@ namespace FreeSql.GBase
|
||||
if (objType?.FullName == "System.Byte[]") return null;
|
||||
|
||||
var argIndex = 0;
|
||||
if (objType == null && callExp.Method.DeclaringType == typeof(Enumerable))
|
||||
if (objType == null && (
|
||||
callExp.Method.DeclaringType == typeof(Enumerable) ||
|
||||
callExp.Method.DeclaringType.FullName == "System.MemoryExtensions"
|
||||
))
|
||||
{
|
||||
objExp = callExp.Arguments.FirstOrDefault();
|
||||
objType = objExp?.Type;
|
||||
|
||||
@@ -112,7 +112,10 @@ namespace FreeSql.KingbaseES
|
||||
if (objType?.FullName == "System.Byte[]") return null;
|
||||
|
||||
var argIndex = 0;
|
||||
if (objType == null && callExp.Method.DeclaringType == typeof(Enumerable))
|
||||
if (objType == null && (
|
||||
callExp.Method.DeclaringType == typeof(Enumerable) ||
|
||||
callExp.Method.DeclaringType.FullName == "System.MemoryExtensions"
|
||||
))
|
||||
{
|
||||
objExp = callExp.Arguments.FirstOrDefault();
|
||||
objType = objExp?.Type;
|
||||
|
||||
@@ -82,7 +82,10 @@ namespace FreeSql.MsAccess
|
||||
if (objType?.FullName == "System.Byte[]") return null;
|
||||
|
||||
var argIndex = 0;
|
||||
if (objType == null && callExp.Method.DeclaringType == typeof(Enumerable))
|
||||
if (objType == null && (
|
||||
callExp.Method.DeclaringType == typeof(Enumerable) ||
|
||||
callExp.Method.DeclaringType.FullName == "System.MemoryExtensions"
|
||||
))
|
||||
{
|
||||
objExp = callExp.Arguments.FirstOrDefault();
|
||||
objType = objExp?.Type;
|
||||
|
||||
@@ -110,7 +110,10 @@ namespace FreeSql.MySql
|
||||
if (objType?.FullName == "System.Byte[]") return null;
|
||||
|
||||
var argIndex = 0;
|
||||
if (objType == null && callExp.Method.DeclaringType == typeof(Enumerable))
|
||||
if (objType == null && (
|
||||
callExp.Method.DeclaringType == typeof(Enumerable) ||
|
||||
callExp.Method.DeclaringType.FullName == "System.MemoryExtensions"
|
||||
))
|
||||
{
|
||||
objExp = callExp.Arguments.FirstOrDefault();
|
||||
objType = objExp?.Type;
|
||||
|
||||
@@ -112,7 +112,10 @@ namespace FreeSql.Odbc.Default
|
||||
if (objType?.FullName == "System.Byte[]") return null;
|
||||
|
||||
var argIndex = 0;
|
||||
if (objType == null && callExp.Method.DeclaringType == typeof(Enumerable))
|
||||
if (objType == null && (
|
||||
callExp.Method.DeclaringType == typeof(Enumerable) ||
|
||||
callExp.Method.DeclaringType.FullName == "System.MemoryExtensions"
|
||||
))
|
||||
{
|
||||
objExp = callExp.Arguments.FirstOrDefault();
|
||||
objType = objExp?.Type;
|
||||
|
||||
@@ -108,7 +108,10 @@ namespace FreeSql.Odbc.MySql
|
||||
if (objType?.FullName == "System.Byte[]") return null;
|
||||
|
||||
var argIndex = 0;
|
||||
if (objType == null && callExp.Method.DeclaringType == typeof(Enumerable))
|
||||
if (objType == null && (
|
||||
callExp.Method.DeclaringType == typeof(Enumerable) ||
|
||||
callExp.Method.DeclaringType.FullName == "System.MemoryExtensions"
|
||||
))
|
||||
{
|
||||
objExp = callExp.Arguments.FirstOrDefault();
|
||||
objType = objExp?.Type;
|
||||
|
||||
@@ -112,7 +112,10 @@ namespace FreeSql.Odbc.Oracle
|
||||
if (objType?.FullName == "System.Byte[]") return null;
|
||||
|
||||
var argIndex = 0;
|
||||
if (objType == null && callExp.Method.DeclaringType == typeof(Enumerable))
|
||||
if (objType == null && (
|
||||
callExp.Method.DeclaringType == typeof(Enumerable) ||
|
||||
callExp.Method.DeclaringType.FullName == "System.MemoryExtensions"
|
||||
))
|
||||
{
|
||||
objExp = callExp.Arguments.FirstOrDefault();
|
||||
objType = objExp?.Type;
|
||||
|
||||
@@ -111,7 +111,10 @@ namespace FreeSql.Odbc.PostgreSQL
|
||||
if (objType?.FullName == "System.Byte[]") return null;
|
||||
|
||||
var argIndex = 0;
|
||||
if (objType == null && callExp.Method.DeclaringType == typeof(Enumerable))
|
||||
if (objType == null && (
|
||||
callExp.Method.DeclaringType == typeof(Enumerable) ||
|
||||
callExp.Method.DeclaringType.FullName == "System.MemoryExtensions"
|
||||
))
|
||||
{
|
||||
objExp = callExp.Arguments.FirstOrDefault();
|
||||
objType = objExp?.Type;
|
||||
|
||||
@@ -118,7 +118,10 @@ namespace FreeSql.Odbc.SqlServer
|
||||
if (objType?.FullName == "System.Byte[]") return null;
|
||||
|
||||
var argIndex = 0;
|
||||
if (objType == null && callExp.Method.DeclaringType == typeof(Enumerable))
|
||||
if (objType == null && (
|
||||
callExp.Method.DeclaringType == typeof(Enumerable) ||
|
||||
callExp.Method.DeclaringType.FullName == "System.MemoryExtensions"
|
||||
))
|
||||
{
|
||||
objExp = callExp.Arguments.FirstOrDefault();
|
||||
objType = objExp?.Type;
|
||||
|
||||
@@ -112,7 +112,10 @@ namespace FreeSql.Oracle
|
||||
if (objType?.FullName == "System.Byte[]") return null;
|
||||
|
||||
var argIndex = 0;
|
||||
if (objType == null && callExp.Method.DeclaringType == typeof(Enumerable))
|
||||
if (objType == null && (
|
||||
callExp.Method.DeclaringType == typeof(Enumerable) ||
|
||||
callExp.Method.DeclaringType.FullName == "System.MemoryExtensions"
|
||||
))
|
||||
{
|
||||
objExp = callExp.Arguments.FirstOrDefault();
|
||||
objType = objExp?.Type;
|
||||
|
||||
@@ -112,7 +112,10 @@ namespace FreeSql.PostgreSQL
|
||||
if (objType?.FullName == "System.Byte[]") return null;
|
||||
|
||||
var argIndex = 0;
|
||||
if (objType == null && callExp.Method.DeclaringType == typeof(Enumerable))
|
||||
if (objType == null && (
|
||||
callExp.Method.DeclaringType == typeof(Enumerable) ||
|
||||
callExp.Method.DeclaringType.FullName == "System.MemoryExtensions"
|
||||
))
|
||||
{
|
||||
objExp = callExp.Arguments.FirstOrDefault();
|
||||
objType = objExp?.Type;
|
||||
|
||||
@@ -117,7 +117,10 @@ namespace FreeSql.QuestDb
|
||||
if (objType?.FullName == "System.Byte[]") return null;
|
||||
|
||||
var argIndex = 0;
|
||||
if (objType == null && callExp.Method.DeclaringType == typeof(Enumerable))
|
||||
if (objType == null && (
|
||||
callExp.Method.DeclaringType == typeof(Enumerable) ||
|
||||
callExp.Method.DeclaringType.FullName == "System.MemoryExtensions"
|
||||
))
|
||||
{
|
||||
objExp = callExp.Arguments.FirstOrDefault();
|
||||
objType = objExp?.Type;
|
||||
|
||||
@@ -111,7 +111,10 @@ namespace FreeSql.ShenTong
|
||||
if (objType?.FullName == "System.Byte[]") return null;
|
||||
|
||||
var argIndex = 0;
|
||||
if (objType == null && callExp.Method.DeclaringType == typeof(Enumerable))
|
||||
if (objType == null && (
|
||||
callExp.Method.DeclaringType == typeof(Enumerable) ||
|
||||
callExp.Method.DeclaringType.FullName == "System.MemoryExtensions"
|
||||
))
|
||||
{
|
||||
objExp = callExp.Arguments.FirstOrDefault();
|
||||
objType = objExp?.Type;
|
||||
|
||||
@@ -117,7 +117,10 @@ namespace FreeSql.SqlServer
|
||||
if (objType?.FullName == "System.Byte[]") return null;
|
||||
|
||||
var argIndex = 0;
|
||||
if (objType == null && callExp.Method.DeclaringType == typeof(Enumerable))
|
||||
if (objType == null && (
|
||||
callExp.Method.DeclaringType == typeof(Enumerable) ||
|
||||
callExp.Method.DeclaringType.FullName == "System.MemoryExtensions"
|
||||
))
|
||||
{
|
||||
objExp = callExp.Arguments.FirstOrDefault();
|
||||
objType = objExp?.Type;
|
||||
|
||||
@@ -108,7 +108,10 @@ namespace FreeSql.Sqlite
|
||||
if (objType?.FullName == "System.Byte[]") return null;
|
||||
|
||||
var argIndex = 0;
|
||||
if (objType == null && callExp.Method.DeclaringType == typeof(Enumerable))
|
||||
if (objType == null && (
|
||||
callExp.Method.DeclaringType == typeof(Enumerable) ||
|
||||
callExp.Method.DeclaringType.FullName == "System.MemoryExtensions"
|
||||
))
|
||||
{
|
||||
objExp = callExp.Arguments.FirstOrDefault();
|
||||
objType = objExp?.Type;
|
||||
|
||||
@@ -111,7 +111,10 @@ namespace FreeSql.TDengine
|
||||
if (objType?.FullName == "System.Byte[]") return null;
|
||||
|
||||
var argIndex = 0;
|
||||
if (objType == null && callExp.Method.DeclaringType == typeof(Enumerable))
|
||||
if (objType == null && (
|
||||
callExp.Method.DeclaringType == typeof(Enumerable) ||
|
||||
callExp.Method.DeclaringType.FullName == "System.MemoryExtensions"
|
||||
))
|
||||
{
|
||||
objExp = callExp.Arguments.FirstOrDefault();
|
||||
objType = objExp?.Type;
|
||||
|
||||
@@ -115,7 +115,10 @@ namespace FreeSql.Xugu
|
||||
if (objType?.FullName == "System.Byte[]") return null;
|
||||
|
||||
var argIndex = 0;
|
||||
if (objType == null && callExp.Method.DeclaringType == typeof(Enumerable))
|
||||
if (objType == null && (
|
||||
callExp.Method.DeclaringType == typeof(Enumerable) ||
|
||||
callExp.Method.DeclaringType.FullName == "System.MemoryExtensions"
|
||||
))
|
||||
{
|
||||
objExp = callExp.Arguments.FirstOrDefault();
|
||||
objType = objExp?.Type;
|
||||
|
||||
Reference in New Issue
Block a user