I am trying to create an MVVM application and am using EntityFramework 4.2 Code First for my data access. I am trying to use Catel as my MVVM framework because I've been impressed with its capabilities.
I set up my model objects to inherit from DataObjectBase. However, one thing I noticed is that when my project created the database, each of the generated database tables contain IsDirty and IsReadOnly columns. Apparently because these are public
properties of the DataObjectBase class.
Has anyone else tried using DataObjectBase with EF Code First? If so, do you have a good way to exclude those values from the database tables? I was able to exclude them by using Code First's fluent API and adding a statement to ignore each of
them in the OnModelCreating method but in a project with numerous entity classes, this would be a drag.