Hello,
I'm attempting to build a new project using Blazor Server and an older version of LLBLGEN, v4.1 (Self Servicing)
I'm running into an error when attempting to pull data, I have the LLBLGEN setup generally the same way as in an older project.
The error is:
System.TypeInitializationException: The type initializer for 'SD.LLBLGen.Pro.DQE.SqlServer.DynamicQueryEngine' threw an exception.
---> SD.LLBLGen.Pro.ORMSupportClasses.ORMGeneralOperationException: DbProviderFactory information for compatibilitylevel SqlServer2005 wasn't properly initialized.
at SD.LLBLGen.Pro.DQE.SqlServer.SqlServerSpecificCreator.ObtainDbProviderFactoryInfo(SqlServerCompatibilityLevel compatibilityLevel)
at SD.LLBLGen.Pro.DQE.SqlServer.SqlServerSpecificCreator.SetDefaultDbProviderFactoryParameterData(SqlServerCompatibilityLevel compatibilityLevel)
at SD.LLBLGen.Pro.DQE.SqlServer.DynamicQueryEngine.set_DefaultCompatibilityLevel(SqlServerCompatibilityLevel value)
at SD.LLBLGen.Pro.DQE.SqlServer.DynamicQueryEngine..cctor()
My project is using DI to Inject an 'LLBLGENService' into each component, the connection string is set in the constructor of this service and the Singleton is added in Startup.cs:
public LlblgenService()
{
CommonDaoBase.ActualConnectionString = Configuration.GetConnectionString("TST");
}
Connection string is a value in my appsettings.json file:
"ConnectionStrings": {
"TST": "Data Source=IP;Password=PASS;User ID=USER;Initial Catalog=DATABASE"
}
Is it possible to get an older version of LLBLGEN working with Blazor in this manner?
Thank you