Hello,
Using LLBL v5.3(13-Oct-2017) Targeting .Net Standard 2.0, SQL Server 2016
I have the following code in my Startup class of an Asp.Net Core Web Api project (netcoreapp2.0).
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
app.UseMvc();
RuntimeConfiguration.AddConnectionString("ConnectionString.SQL Server (SqlClient)","data source=Dbsrv1;initial catalog=zzTest;integrated security=SSPI;persist security info=False;packet size=4096");
RuntimeConfiguration.ConfigureDQE<SQLServerDQEConfiguration>(
c => c.SetDefaultCompatibilityLevel(SqlServerCompatibilityLevel.SqlServer2012));
}
when i run the application i get following exception
DbProviderFactory information for compatibilitylevel SqlServer2012 wasn't properly initialized.
Source: SD.LLBLGen.Pro.DQE.SqlServer
Runtime Build: 5.3.0_Netstandard2x
StackTrace: at SD.LLBLGen.Pro.DQE.SqlServer.SqlServerSpecificCreator.ObtainDbProviderFactoryInfo(SqlServerCompatibilityLevel compatibilityLevel)
at SD.LLBLGen.Pro.DQE.SqlServer.DynamicQueryEngine.Configure(SQLServerDQEConfiguration configuration)
at zzTest.Application.Web.Startup.Configure(IApplicationBuilder app, IHostingEnvironment env) in C:\Users\zzTester\Desktop\z\Zenople.Application.Web\Startup.cs:line 37
Any help?
Thanks