Rock.Model.DataViewService.GetByEntityTypeId C# (CSharp) Method

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
        public IQueryable<Rock.Model.DataView> GetByEntityTypeId( int entityTypeId )
        {
            return Queryable()
                .Where( d => d.EntityTypeId == entityTypeId )
                .OrderBy( d => d.Name );
        }