This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Simple question, if I have soft-deleted an entity, how can I undelete it? I can't set DeletedOn to null as it is read only, and I can't add it back to the uow... Is there any easy way or do I need to get nasty with the stored procs?
Sean |
|
|
You can try something like this perhaps, works for me: Query q = new Query(typeof(YourEntityType), Entity<YourEntityType>.Attribute("Id") == "IDOfObjectToUndelete"); |
|
|
Thanks, I'll give that a shot. |
|