Rock.Model.AttributeValueService.GetByEntityId C# (CSharp) Method

GetByEntityId() public method

Returns an enumerable collection of AttributeValues by EntityId.
public GetByEntityId ( int entityId ) : IQueryable
entityId int A representing the EntityId to search by.
return IQueryable
        public IQueryable<AttributeValue> GetByEntityId( int? entityId )
        {
            return Queryable().Where( t => ( t.EntityId == entityId || ( entityId == null && t.EntityId == null ) ) );
        }