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
|
i have a Item table that contains item details Each item can have 0 or more costs - held on the costs table. The users can delete costs if required - i am using "soft" delete for this. but when i read for an item -return UnitOfWork.FindOne<Item>(itemID);the associated Costs collection contains "soft" deleted rows how do i prevent this - so that the query just returns the undeleted items in the costs collection (also applies to prices and a couple of other tables) |
|
|
Hi Mark, Sounds like you may not have commited your changes for the removal of a cost? Certainly once a row is removed, or soft deleted - it should not be being returned in a Find query subsequent to the commit of those changes. Could you attach a quick example of the behavior you are seeing and an associated code sample and we can have a quick look at whats going on :)
Jeremy |
|