C# Class Rock.Model.AttributeService

Data access/service class for Rock.Model.Attribute entities.
Afficher le fichier Open project: NewSpring/Rock Class Usage Examples

Méthodes publiques

Méthode Description
Get ( int entityTypeId, string entityQualifierColumn, string entityQualifierValue, string key ) : Attribute

Returns an Rock.Model.Attribute by Rock.Model.EntityType, EntityQualifierColumn, EntityQualiferValue and Key name.

Get ( int entityTypeId, string entityQualifierColumn, string entityQualifierValue ) : IQueryable

Gets a queryable collection of Rock.Model.Attribute">Attributes by

GetByCategoryId ( int categoryId ) : IQueryable

Returns a queryable collection of Rock.Model.Attribute">Attributes by

GetByEntityTypeId ( int entityTypeId ) : IQueryable

Returns a queryable collection of Rock.Model.Attribute">Attributes by

GetByFieldTypeId ( int fieldTypeId ) : IQueryable

Returns an enumerable collection of Rock.Model.Attribute">Attributes that uses the provided

GetGlobalAttribute ( string key ) : Attribute

Returns a global Rock.Model.Attribute by its Key.

GetGlobalAttributes ( ) : IQueryable

Returns a queryable collection containing the Global Attributes.

GetGroupMemberAttributesCombined ( int groupId, int groupTypeId ) : IQueryable

Gets the group member attributes combined with the inherited group type's group member attibutes.

GetGuid ( int id ) : Guid?

Gets the Guid for the Attribute that has the specified Id

GetSystemSetting ( string key ) : Attribute

Returns a global Rock.Model.Attribute by its Key.

GetSystemSettings ( ) : IQueryable

Returns a queryable collection containing the Global Attributes.

Method Details

Get() public méthode

Returns an Rock.Model.Attribute by Rock.Model.EntityType, EntityQualifierColumn, EntityQualiferValue and Key name.
public Get ( int entityTypeId, string entityQualifierColumn, string entityQualifierValue, string key ) : Attribute
entityTypeId int A that represents the EntityTypeId of the to search by.
entityQualifierColumn string A that represents the name of the EntityQualifierColumn to search by.
entityQualifierValue string A that represents the EntityQualifierValue to search by.
key string A representing the key name of the attribute to search by.
Résultat System.Attribute

Get() public méthode

Gets a queryable collection of Rock.Model.Attribute">Attributes by
public Get ( int entityTypeId, string entityQualifierColumn, string entityQualifierValue ) : IQueryable
entityTypeId int A representing the EntityTypeId of a to search by.
entityQualifierColumn string A represents the name of the EntityQualifierColumn to search by.
entityQualifierValue string A that represents the qualifier value to search by.
Résultat IQueryable

GetByCategoryId() public méthode

Returns a queryable collection of Rock.Model.Attribute">Attributes by
public GetByCategoryId ( int categoryId ) : IQueryable
categoryId int A representing the CategoryId of the to search by.
Résultat IQueryable

GetByEntityTypeId() public méthode

Returns a queryable collection of Rock.Model.Attribute">Attributes by
public GetByEntityTypeId ( int entityTypeId ) : IQueryable
entityTypeId int A representing the EntityTypeId of the to search by.
Résultat IQueryable

GetByFieldTypeId() public méthode

Returns an enumerable collection of Rock.Model.Attribute">Attributes that uses the provided
public GetByFieldTypeId ( int fieldTypeId ) : IQueryable
fieldTypeId int A that represents the FileTypeId of the to search by.
Résultat IQueryable

GetGlobalAttribute() public méthode

Returns a global Rock.Model.Attribute by its Key.
public GetGlobalAttribute ( string key ) : Attribute
key string A representing the name of the Attribute key.
Résultat System.Attribute

GetGlobalAttributes() public méthode

Returns a queryable collection containing the Global Attributes.
public GetGlobalAttributes ( ) : IQueryable
Résultat IQueryable

GetGroupMemberAttributesCombined() public méthode

Gets the group member attributes combined with the inherited group type's group member attibutes.
public GetGroupMemberAttributesCombined ( int groupId, int groupTypeId ) : IQueryable
groupId int The group identifier.
groupTypeId int The group type identifier.
Résultat IQueryable

GetGuid() public méthode

Gets the Guid for the Attribute that has the specified Id
public GetGuid ( int id ) : Guid?
id int The identifier.
Résultat Guid?

GetSystemSetting() public méthode

Returns a global Rock.Model.Attribute by its Key.
public GetSystemSetting ( string key ) : Attribute
key string A representing the name of the Attribute key.
Résultat System.Attribute

GetSystemSettings() public méthode

Returns a queryable collection containing the Global Attributes.
public GetSystemSettings ( ) : IQueryable
Résultat IQueryable