Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 08, 2012 02:04 PM by sjnaughton
Dec 07, 2012 08:33 PM|LINK
I want to read the Factory Method information for each one of my entities at a very specific moment ... at SavingChanges time
I'd like to iterate trough all of the values defined in the Model Entities classs (the MyModel.Designer.cs file) so I can perform some CRUD operations taht I need to execute at that very precise moment
How can you do that?
Carlos N. Porras
Dec 08, 2012 12:19 PM|LINK
Hi Carlos, this seems a very similar question to some others you have on the go and I think is will be the same answer, to use the saving changes event of the data model.
Dec 08, 2012 01:18 PM|LINK
Thank you. I was asking how to do that .... I'd like to know the way you do the iteration among the set of columns of an entity
What I meaan is that I don't have an idea on how to do the loop (the iteration) among those columns. How do you write the foreach statement to do the loop ?
Dec 08, 2012 02:04 PM|LINK
I'll try for a smaple real soon, I have beeendragged off to a new project but should be
able to include this new auditing in that anyway.