Hi there,
I'm writing yet another ActiveRecord implementation for a company that is less scared of my code than they are the designation "Release Candidate" on CastleProject's implementation. Anyway, I'm using Attributes on each property in the base class to map them to the returning DataSet's columns:
[ResultColumnAttribute("CUST_FIRST_NAME")]
public string FirstName
{
get { return _columnName; }
set { _columnName = value; }
}
so that when I instantiate the class from a DataSet, I assign that property value the column's value. What exception should I throw when a column is mapped with an attribute, but doesn't show up in the DataSet? I don't want to go and write a custom one (lazy), and I think Application.Exception is a little nondescript.