FindAll() public static méthode

Returns all instances found for the specified type.
public static FindAll ( Type targetType ) : Array
targetType System.Type
Résultat System.Array
Exemple #1
0
 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);
             }
         }
     }
 }