Question

I am Currently working on DNN based website. I want to add new table for my custom module to keep record of login and registration info of profile. For that does anyone knows which fields are required for any table in DNN? I want to use database which I assigned at DNN installation. And how to retrieve data from table which I have created?

Was it helpful?

Solution 2

Chris handled the table requirements, here is a little about accessing the database...

Using DAL2 to access your database in DNN is really easy. It helps you connect to the database and preform the CRUD operations. Follow the MyObject.cs and MyObjectRepository.cs model and you should be good to go.

OTHER TIPS

You should really go through the Module Development wiki for DNN, the Task Manager series will do you wonders for understanding DNN (ignore that it says it is for DNN5, it will work just fine for DNN7 as well)

http://www.dnnsoftware.com/wiki/page/module-development

There are no "fields" required by DNN when you add a table, as a developer you can choose what you want included.

Besides Chris Hammond's tutorials and module template (IMHO, some of the best contributions ever to the DNN developer community), there are a couple of other extremely good tools to add to your DNN developer toolbox.

Note that neither of these are free, but are well worth having!

Agree with all above but for a quick example of how to use PetaPoco for your DAL, see this answer: https://stackoverflow.com/a/35749594/4574668

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top