matthewschrager / Repository

A generic implementation of the repository pattern in C#.
199 stars 75 forks source link

Add support for NotMapped attribute #8

Closed Joanne5 closed 6 years ago

Joanne5 commented 9 years ago

Currently all public properties of a class are mapped to columns in the database table. EF uses the [NotMapped] attribute to signal that a property should not be mapped into the database. Adding a check for this attribute allows the data class to control in a standard way what properties belong to the database.