C# Class Rock.Model.DataViewService

DataView Service and Data access class
Mostrar archivo Open project: NewSpring/Rock Class Usage Examples

Public Methods

Method Description
GetAvailableEntityTypes ( ) : IQueryable

Returns an enumerable collection of EntityTypes that have a DataView associated with them.

GetByEntityTypeId ( int entityTypeId ) : IQueryable

Returns an enumerable collection of Rock.Model.DataView">DataViews that are associated with a specified

GetIds ( int dataViewId ) : List

Gets the ids.

GetNewFromTemplate ( int dataViewId ) : DataView

Create a new non-persisted Data View using an existing Data View as a template.

IsViewInFilter ( int dataViewId, DataViewFilter filter ) : bool

Determines whether the specified Data View forms part of a filter.

Private Methods

Method Description
IsViewInFilter ( int dataViewId, DataViewFilter filter, int dataViewFilterEntityId ) : bool
ResetPermanentStoreIdentifiers ( DataViewFilter filter ) : void

Reset all of the identifiers on a DataViewFilter that uniquely identify it in the permanent store.

Method Details

GetAvailableEntityTypes() public method

Returns an enumerable collection of EntityTypes that have a DataView associated with them.
public GetAvailableEntityTypes ( ) : IQueryable
return IQueryable

GetByEntityTypeId() public method

Returns an enumerable collection of Rock.Model.DataView">DataViews that are associated with a specified
public GetByEntityTypeId ( int entityTypeId ) : IQueryable
entityTypeId int A representing the EntityTypeId of the to search by.
return IQueryable

GetIds() public method

Gets the ids.
public GetIds ( int dataViewId ) : List
dataViewId int The data view identifier.
return List

GetNewFromTemplate() public method

Create a new non-persisted Data View using an existing Data View as a template.
public GetNewFromTemplate ( int dataViewId ) : DataView
dataViewId int The identifier of a Data View to use as a template for the new Data View.
return DataView

IsViewInFilter() public method

Determines whether the specified Data View forms part of a filter.
public IsViewInFilter ( int dataViewId, DataViewFilter filter ) : bool
dataViewId int The unique identifier of a Data View.
filter DataViewFilter The filter.
return bool