/// <summary>
 /// WARNING: This will contain all the Attribute records that in the database.
 /// This could be an expensive call.
 /// Please use <code> AttributeCache.AllForEntityType(int entityTypeId)</code> if you only need the attributes
 /// for a specific EntityType. This will be much more efficient.
 /// </summary>
 /// <returns></returns>
 public static new List <AttributeCache> All(RockContext rockContext)
 {
     return(ModelCache <AttributeCache, Model.Attribute> .All(rockContext));
 }
Exemple #2
0
 /// <summary>
 /// Gets all the instances of this type of model/entity that are currently in cache.
 /// </summary>
 /// <param name="rockContext">The rock context.</param>
 /// <returns></returns>
 public new static List <FieldTypeCache> All(RockContext rockContext)
 {
     // use 'new' to override the base All since we want to sort field types
     return(ModelCache <FieldTypeCache, FieldType> .All(rockContext).OrderBy(a => a.Name).ToList());
 }
 /// <summary>
 /// Gets all the instances of this type of model/entity that are currently in cache.
 /// </summary>
 /// <param name="rockContext">The rock context.</param>
 /// <returns></returns>
 public new static List <SmsActionCache> All(RockContext rockContext)
 {
     // use 'new' to override the base All since we want to sort actions
     return(ModelCache <SmsActionCache, SmsAction> .All(rockContext).OrderBy(a => a.Order).ToList());
 }