I have been using .NET partial class defintions to add custom fields to entities.
For example, i have a Folder entity and a Document entity. The folder has a collection of documents. In my business layer i have defined a partial class for the folder and added to it a property called LastDocumentDate to provide to the Folder entity the date of the most recent Document in its Documents collecttion.
Is there any way to set up a filter on the property i added in the partial class definiton (i.e. not in the designer)?
I want to find all folders where the LastDocumentDate < today for example.