MonoSoftware.MonoX.DAL.EntityClasses.PollEntity.GetRelationInfoPollAnswers C# (CSharp) Method

GetRelationInfoPollAnswers() public method

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