/// <summary> /// Customs the non query criteria. /// </summary> /// <param name="type">The type.</param> /// <param name="criteria">The criteria.</param> /// <returns></returns> /// <exception cref="AttributeNotFoundException"></exception> public static bool CustomNonQueryCriteria(Type type, Criteria criteria) { CheckTypeAtrribute(type); try { //Commit Filters criteria.CommitFilters(); return(ActiveRecordMaster.ExecuteNonQueryCriteria(type, criteria)); } catch (Exception ex) { LogManager.Log("Monty.ActiveRecord", LogCategory.Error, String.Format("Error when tries to execute ActiveRecordBase.CustomNonQueryCriteria(type: [{0}], criteria: [{1}])", type, criteria), ex); return(false); } }