sapiens/SqlFu — pull request #25 by CaspianCanuck (2013-11-26 15:45:29+00:00)
Title: Support for storing SqlFu-specific attributes in metadata classes

Resubmitting the pull request originally made in the master branch (https://github.com/sapiens/SqlFu/pull/23):

"I don't like decorating my POCO's with data-access-specific attributes, and one way to keep them agnostic is by adding a metadata buddy class using the [MetadataType] attribute and applying all class- and member-level attributes (validation, data-access-related, etc.) in the buddy class. In order for these metadata attributes to be recognized by TableInfo.cs I have added an enhanced version of your GetSingleAttribute extension method that checks the metadata buddy class (if one exists) for an attribute if it fails to find it in the main class. Here's this enhanced method. I will also add corresponding changes to the TableInfo.cs class."