Rock.Model.DefinedTypeService.GetByFieldTypeId C# (CSharp) 메소드

GetByFieldTypeId() 공개 메소드

Returns an enumerable collection of DefinedTypes by FieldTypeId
public GetByFieldTypeId ( int fieldTypeId ) : IOrderedQueryable
fieldTypeId int A representing the FieldTypeId of the that is used for the /// ///
리턴 IOrderedQueryable
        public IOrderedQueryable<Rock.Model.DefinedType> GetByFieldTypeId( int? fieldTypeId )
        {
            return Queryable()
                .Where( t =>
                    ( t.FieldTypeId == fieldTypeId ||
                        ( fieldTypeId == null && t.FieldTypeId == null ) ) )
                .OrderBy( t => t.Order );
        }