Hello,
I'm currently developing a WPF application using the MVVM pattern and
I'm looking for a way to separate my Active Record (AR) classes in my
model from the rest of my application. Currently I have a few classes
mapped to my database and some methods creating an interface for my
persistence
ActiveRecord can be fully used without inheriting ActiveRecordBase, see
http://www.castleproject.org/activerecord/documentation/trunk/advanced/mediator.html
http://www.castleproject.org/activerecord/documentation/trunk/advanced/mediator.htmlInstead
of using the static methods e.g. Post.FindAll(),
Hi Christian
I'd recommend using AutoMapper to map your AR objects to your view
models. This is the best solution no matter what persistence framework
you are using. You can leave the persistence layer out completely for
testing and visual design.
DDD fans might even introduce a separated domain