MonoSoftware.MonoX.DAL.EntityClasses.SnNoteEntity.GetRelationInfoAspnetUserPostedTo C# (CSharp) Method

GetRelationInfoAspnetUserPostedTo() public method

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