We use EF5 in our project. The same code was working in VS 2012. After migrated solution from VS 2012 to VS 2019, some EF query got the following exception:
"System.NotSupportedException: Unable to create a constant value of type ''. Only primitive types or enumeration types are supported in this context." Does anyone have the similar experience?