Using the IsNullOrWhiteSpace method in a linq statement will report an error,
Error message: System.NotSupportedException: ‘LINQ to Entities does not recognize the method ‘Boolean lsNullOrWhiteSpace(System.String)’ method, and this method cannot be translated into a store expression.’
You can use the method below to solve:
You can also use IsNullOrEmpty, IsNullOrEmpty method does not report an error, normal operation
The following figure is the analysis of these two methods:
Read More:
- [Solved] dhl: Error: LINQ to Entities does not support the specified type member “Date”
- How to Solve org.apache.ibatis.binding.BindingException: Invalid bound statement (not found) Error
- How to Solve Excel Error Log 2: Sloving method
- How to Solve Internal Server Error: /swagger/v1/swagger.json
- How to Solve cocos2dx msb3073 Error
- How to Solve Error: Type mismatch: cannot convert from Object to Car
- How to Solve Hdsc32 MDK compile error: #29 & #223-D
- How to Solve Namedparameterjdbctemplate.queryforobject() Return Error
- How to Solve error C2039: “to_ String “: not a member of” STD “
- Hive Statement Error During Execution: Error while processing statement: FAILED: Execution Error, return code 2 from o
- How to Solve Valgrind 3.14 error on ARM 64
- How to Solve Logstash error: failed to execute action
- How to Solve PageHelper.startPage count Error
- How to Solve Error: “initializer element is not constant”
- Android 10: How to Solve Systemui Error
- How to Solve Ogg start error message ogg-00014
- How to Solve Project Upgrade to flutter2.5.0 Error
- How to Solve Svn upload so File Error
- Duplicate entry ‘1’ for key’PRIMARY’ (How to Solve)