MonoSoftware.MonoX.DAL.EntityClasses.NewsItemEntity.GetRelationInfoNewsCategory C# (CSharp) Method

GetRelationInfoNewsCategory() public method

Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'NewsCategory' to this entity.
public GetRelationInfoNewsCategory ( ) : IRelationPredicateBucket
return IRelationPredicateBucket
        public virtual IRelationPredicateBucket GetRelationInfoNewsCategory()
        {
            IRelationPredicateBucket bucket = new RelationPredicateBucket();
            bucket.PredicateExpression.Add(new FieldCompareValuePredicate(NewsCategoryFields.Id, null, ComparisonOperator.Equal, this.NewsCategoryId));
            return bucket;
        }