MonoSoftware.MonoX.DAL.EntityClasses.NewsCategoryEntity.GetRelationInfoNewsCategoryChildrens C# (CSharp) Method

GetRelationInfoNewsCategoryChildrens() public method

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