Hi Jessica,
If you created a custom class into your custom module, you can easily generate ObjectInfo and ObjectInfoProvider for that class which will allow you to manipulate with data from C# code.
Here are some steps how to generate classes for kentico:
- Go to custom module
- Select 'Classes' from tab on the left
- Click to edit specific class that you want
- Go on 'Code' page from tab on the left
- There you can customize your code and chose where to save it
If you save your code outside the CMS project (another assembly), you may use this attribute for newly generated clases: [assembly: AssemblyDiscoverable]
When you do all this, you can get/update objects with:
- NameOfTheObjectInfoProvider.GetNameOfTheObjectInfo(id)
- NameOfTheObjectInfoProvider.GetNameOfTheObjects() - to retrive all
- NameOfTheObjectInfoProvider.SetNameOfTheObjectInfo(infoObj)
- NameOfTheObjectProvider.DeleteNameOfTheObjectInfo(infoObj)
- ...
Best regards,
Dragoljub