DNNTemplates icon indicating copy to clipboard operation
DNNTemplates copied to clipboard

Dataprovider obsolete warning due to dependency injection

Open sawest opened this issue 11 months ago • 0 comments

The dataprovider class is getting an obsolete warning for DNN 9.11.3 and higher. Need to know how to change the code to remove this error and be ready for DNN 11.

Warning: \Data\DataProvider.vb(37,33): warning BC40000: 'Public Shared Overloads Function CreateObject(objectProviderType As String, objectNamespace As String, objectAssemblyName As String) As Object' is obsolete: 'Deprecated in DotNetNuke 9.11.3. Please use overload with IServiceProvider. Scheduled removal in v11.0.0.'.

sawest avatar Jan 23 '25 15:01 sawest