Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

In what namespace does IContentSoftLinkRepository reside?

Vote:
 

I'm working on an EpiServer 8.0 site, and am attempting to incorporate a control that uses the IContentSoftLinkRepository.  But it won't resolve in my solution, and Intellisense fails to provide a resolve option.  My source is derived from these articles:

https://jstemerdink.wordpress.com/2014/04/05/indexing-blocks-with-episerver-search/

https://jstemerdink.wordpress.com/2014/10/11/indexing-blocks-with-episerver-search-revisited/

These using statements are in my class.

using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Reflection;
using System.Text;
using epiTroubleShooting.DataAnnotations; // My test project
using EPiServer;
using EPiServer.Core;
using EPiServer.Core.Html;
using EPiServer.DataAbstraction;
using EPiServer.DataAccess;
using EPiServer.Framework;
using EPiServer.Framework.Initialization;
using EPiServer.Logging;
using EPiServer.Security;
using EPiServer.ServiceLocation;
using EPiServer.SpecializedProperties;

I just need to get IContentSoftLinkRepository to resolve. Thanks for your help.

#173740
Jan 06, 2017 17:47
Vote:
 

Hi Ken,

It looks like that interface lives in Episerver.DataAbstraction. Check it out here. You will notice that it is in the version 9 documentation, which may be your issue. I could not find a reference to it in the version 8 docs. Looks like you will have to upgrade if you want to use that interface. Hope this helps!

-John

#173741
Jan 06, 2017 21:08
Vote:
 

Thanks John.  We did a workaround, where we just installed the NuGet package for this Block Search control.  Consequently we deleted that class I was working in.  Here is the NuGet link in case anyone else hits this.

http://nuget.episerver.com/en/OtherPages/Package/?packageId=EPi.Libraries.BlockSearch

Thanks for the fast reply.

#173742
Jan 06, 2017 21:43
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.