Hi,
I'm using LLBLGen Pro Runtime Framework Version 5.9.2.
During the migration of a project to .NET 7 I noticed a problem with the constructor of SD.LLBLGen.Pro.ORMSupportClasses.TypedViewBase.
It looks as follows (decompiled):
protected TypedViewBase()
{
base.RemotingFormat = SerializationFormat.Binary;
}
The .NET 7 runtime seems to have an issue with the SerializationFormat.Binary
enum value since it throws an exception on this line:
.ComponentModel.InvalidEnumArgumentException
HResult=0x80070057
Message=The SerializationFormat enumeration value, Binary, is invalid.
Source=System.Data.Common
StackTrace:
at System.Data.DataTable.set_RemotingFormat(SerializationFormat value)
at SD.LLBLGen.Pro.ORMSupportClasses.TypedViewBase`1..ctor(String tableName)
at Project.Library.TypedViewClasses.RS_SomeSPResultTypedView..ctor()
at ConsoleApp1.Program.Main(String[] args)
There seems to be a workround for now: https://learn.microsoft.com/en-us/dotnet/core/compatibility/serialization/7.0/serializationformat-binary.
Still, how do you plan to addressed this? Or is this addressed in v5.10 already?
Best,
andreas