I used to use GetPortalByAlias
function in one of my modules in DNN 6.2.6 and below.
Now I find out that in DNN 7 this function has omitted.
What's the substitution of this function in DNN 7.02?
Assume that my code is like this:
IDataReader dr =
DotNetNuke.Data.DataProvider.Instance().GetPortalByAlias(portalAlias);
When I want to compile the code above in DNN 7 It says:
'DotNetNuke.Data.DataProvider' does not contain a definition for 'GetPortalByAlias' and no extension method.