Views: 1254
Number of votes: 1
Average rating:

What's new in Episerver Social 1.5?

This week brings the release of Episerver Social 1.5. In addition to a handful of internal enhancements and performance tweaks, this version introduces the AnyExpression. 

This new expression allows you to compare a field of your extension data against a set of values, matching documents where the field's value is represented by any within the set.

Consider a scenario where a collection of Comments has been extended with the following sample of extension data:

{ LuckyNumber = 7 }
{ LuckyNumber = 42 }
{ LuckyNumber = 5 }
{ LuckyNumber = 10 }

With the AnyExpression we can now identify those Comments with a LuckyNumber that matches any of a series of values.

var luckyNumberField = FilterExpressionBuilder<MyCommentExtension>.Field(ext => ext.LuckyNumber);
var luckiestComments = luckyNumberField.Any(new long[] { 5, 7, 9 });

var criteria = new CompositeCriteria<Comment, MyCommentExtension>
    ExtensionFilter = luckiestComments 

var commentService = ServiceLocator.Current.GetInstance<ICommentService>();
var results = await commentService.GetAsync(criteria);

In the snippet show above, the service will return a set of Comments extended with the lucky numbers 5, 7, or 9. Given our initial sample, this means that we'd receive those comments with: 

{ LuckyNumber = 7 }
{ LuckyNumber = 5 }

This expression can be applied to any Episerver Social feature accepting extension data. For more details, feel free to dig into the developer guide.

    (By Vishal Tyagi , 23 March 2018 09:12, Permanent link)

    Deleting history of bing is soo easy but the methods to manage bing browsing history caan not be known to every so for your help here we are going to provide you the functional site delete all history bing which will make you understand with the help of images. 

    (By Gracie Flora , 05 June 2018 12:58, Permanent link)

    Episerver Social is customized towards imposing these sorts of solutions. The developer has innovative manipulate to model their UGC to healthy their unique use cases. they can leverage the platform's local social constructs, then can compose them and Coursework Help UK personalize them to their desires, and accomplish that in a machine tailored to helping the demands of handing over UGC.
    (By John Mathew , 16 June 2018 09:03, Permanent link)

    I have no words to to say, specifically for a motive that it is pretty authentic what you have got written and shared right here. It's everywhere inside everyone who preserve thinking that way as you'll assume out of clear information. I'm a writer and have some good experiences dealing with topics that deals with injustice in terms of human caring between the individuals. I presently work for a best paper writing services and I'm used to write some articles whenever I get some free time.

  Please login to post a comment