C# Class Rock.Model.AttributeService

Data access/service class for Rock.Model.Attribute entities.
Mostrar archivo Open project: NewSpring/Rock Class Usage Examples

Public Methods

Method 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 method

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.
return System.Attribute

Get() public method

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.
return IQueryable

GetByCategoryId() public method

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.
return IQueryable

GetByEntityTypeId() public method

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.
return IQueryable

GetByFieldTypeId() public method

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.
return IQueryable

GetGlobalAttribute() public method

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

GetGlobalAttributes() public method

Returns a queryable collection containing the Global Attributes.
public GetGlobalAttributes ( ) : IQueryable
return IQueryable

GetGroupMemberAttributesCombined() public method

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.
return IQueryable

GetGuid() public method

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

GetSystemSetting() public method

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

GetSystemSettings() public method

Returns a queryable collection containing the Global Attributes.
public GetSystemSettings ( ) : IQueryable
return IQueryable