Sanity Checks: The Active Record Version
Following my NHibernate Sanity Check, here is the Active Record version:
public class AR_Sanity_Checks : ActiveRecordModel
{
public static void DoSanityCheck()
{
foreach (Type type in type2Model.Keys)
{
ActiveRecordMediator.SlicedFindAll(type, 0, 0, new Order[0]);
}
}
public static void DoInsanityCheck()
{
//What, do I _LOOK_ crazy to you?
}
}
This is not something that I tested, though, consider this notepad code.
Comments
Comment preview