This project has moved. For the latest updates, please go here.

Virtual Members

Dec 3, 2013 at 8:36 PM
I don't understand why you have not implemented virtual members? It would be much more useful to be able to sub-class and customize the behavior of repositories.

Example: I need to auto-update Created, CreatedBy, Modified and ModifiedBy properites on inserts and updates. I have added these properties to a BaseDocument class so that every document has them, and would like to code a repository base so that these properties are set during add/update operations.
Coordinator
Dec 3, 2013 at 9:08 PM
Edited Dec 3, 2013 at 9:09 PM
I don't understand why you have not implemented virtual members?
Because I didn't think of it.

But I guess you have a point; I'll see if anything bad happens if I make the methods virtual; if not: it's safe to assume next release has virtual methods.
Coordinator
Dec 3, 2013 at 10:29 PM
Edited Dec 3, 2013 at 10:30 PM
How about this? Any comments? Maybe too rigorous?
Dec 3, 2013 at 10:50 PM
Awesome :) A simple change but one that I think makes your project much more flexible. Thank you!
Coordinator
Dec 11, 2013 at 10:42 AM
Included in release 1.6.2