Not if you place it in a separate template
OK, I will place it in a seperate template. My bad.
if an entity isn't changed, nothing is saved, and in your code snippet you don't change it, perhaps that's the reason why it doesn't get saved?
Nope, I just provided a poor example
However I did get it to save. The next question I have is if I do the following:
IEntity2 entity = GeneralEntityFactory.Create(EntityType.CustomerEntity);
I assume I have to cast the enity to a customer entity to get access to the customer fields in this example. If so, the original idea was to generically loop through a collection of modules associated with a page, change some of the fields and save them to a db. If I have to cast, then I need to somehow progamatically cast to get the right entity. Not sure how to do this. Not sure if I'm going down the right path here. I say this because for each enitity I have, I have to modify it (add info to it) and it appears that implementing this generically wont work.