Last post Dec 14, 2010 04:17 AM by sjnaughton
Apr 10, 2009 05:36 PM|jayanthurs|LINK
Due to auditing purpose, we are not supposed to delete records from the database. Instead we update a flaf which will mark it as deleted. Is there a way to accomplish this is Dynamic Data?
At current I am overriding the partial method in datacontext and executing my own query. I wanted to check if other members in the community have a different approach.
ASP.NET Dynamic Data
Apr 10, 2009 05:42 PM|ricka6|LINK
Auditing is typically implemented in stored procedures. Map delete to your delete sproc which will update the deleted field. Dynamic Data has no built in support for this - it's really a data model question (EF or L2S). Both models allow mapping to sprocs.
Dec 13, 2010 05:07 PM|tinac99|LINK
I'm doing a research on how to logically delete records. Can you please detail out the map delete to delete sproc?
Dec 13, 2010 05:33 PM|ricka6|LINK
See tutorial 7 on getting started with EF
Dec 14, 2010 04:17 AM|sjnaughton|LINK
Hi Tinac99, I would look at using WCF RIA Services and the DD Domain Service project also have a look at David Ebbo's video from MIX09 showing how to setup domain service project here
Dynamic Data 4
WCF RIA Services