private static void VerifySchema(ActiveRecordModelCollection models)
{
foreach (ActiveRecordModel model in models)
{
if (!model.Type.IsAbstract)
{
try
{
ActiveRecordMediator.FindAll(model.Type, Expression.Sql("1=0"));
}
catch (Exception ex)
{
throw new ActiveRecordException("Error verifying the schema for model " + model.Type.Name, ex);
}
}
}
}