In what namespace does IContentSoftLinkRepository reside?


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:

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.

Jan 06, 2017 17:47

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!


Jan 06, 2017 21:08

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.

Thanks for the fast reply.

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.