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
|
Hi, I have a parent entity (consignment) which contains a sending and receiving address. We have implemented a method to soft delete an address and now if the consignment is reloaded the associated address is not re-loaded. Is there a way it can be included from within the LINQ query. Here is the query I am currently using. result=(from consignment in uow.Consignments join chargeAccount in uow.Accounts on consignment.AccountId equals chargeAccount.Id join sender in uow.Addresses on consignment.SenderId equals sender.Id join receiver in uow.Addresses on consignment.ReceiverId equals receiver.Id where consignment.Id==criteria select new SearchResult(consignment.Id,consignment.ConsignmentNote,sender.accountName,receiver.AccountName)).ToList(); Any help would be greatly appreciated. Mike |
|
|
Yes you can use the .IncludeDeleted() extension method to handle this, this extension method is available when you include the Mindscape.LightSpeed.Linq namespace in scope.
|
|