Difference between ModuleID and ModuleUniqueID in DNN

I am using the ModuleController class to copy modules to specific pages. I noticed that there are GetModule methods that take a ModuleID as an argument and then GetModuleByUniqueID.

What's the difference between ModuleID and ModuleUniqueID? (using no datatype)

+3


source to share


2 answers


The cloned module requires a different unique identifier. Below is the link below.



https://github.com/dnnsoftware/Dnn.Platform/blob/6d382d62f0719a614c10370efa6dd70be879a644/Website/admin/ControlPanel/AddModule.ascx.cs#L433-L542

0


source


Looking at the API for this on GitHub , it seems that the GetModule methods are executed using a way that is pulled from an internal hash where the ModuleUniqueId call is done directly on the database. Both use the ModuleId value for lookups.



You can see this by looking at line # 1440 and line # 1574

+1


source







All Articles