Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Error in ReviewRepository.cs #2

Closed
davoad opened this issue Oct 4, 2012 · 7 comments
Closed

Build Error in ReviewRepository.cs #2

davoad opened this issue Oct 4, 2012 · 7 comments

Comments

@davoad
Copy link

davoad commented Oct 4, 2012

Hi there, I am getting the folloeing build error:

'Reviewed.Models.Repos.ReviewRepository' does not implement interface member 'Reviewed.Models.Abstract.IReviewRepository.Autocomplete(string)' in ReviewRepository.cs

Does ReviewRepository.cs need updating?

Thanks,
Adam

@GlynLewis
Copy link

Hi,
just downloaded and tried to build and getting same error, sorry but as a noob to mvc I am not able to give any guidance ..yet!!

Thanks

Glyn

@eyesea69
Copy link

I am getting the same error and can't figure it out. If I comment out the offending code and the solution builds but then I get errors on the references to Nuget packages. It can't find those files. I don't understand how the two could be related,.

@joaoaafonso
Copy link

I found the same error... I suppose it's some feature that started being implemented and didn't make it to the final version.

Anyway, you just need to make sure that your repository is implementing the interface. The code will compile after that, and don't worry about that method, it's not being used.

In my case I just added the following to 'Models\Repos\ReviewRepository.cs'

public IEnumerable Autocomplete(string id)
{
return _db.Reviews.Where(r => r.Topic.Contains(id)).Select(o => o.Topic);
}

@Menchaca
Copy link

Menchaca commented Jan 9, 2013

Hi, Having the same error.
joaoaafonso i believe that in your code you are missing the type in the IEnumerable that is returned by the method:

public IEnumerable Autocomplete(string id){...}

Not getting the application to work, but still checking it :)

@Menchaca
Copy link

Menchaca commented Jan 9, 2013

Only needed public IEnumerable Autocomplete(string id){...} now testing the connection string.

@jcreamer898
Copy link
Owner

I'm working on fixing it as well...

@jcreamer898
Copy link
Owner

I got it, just had to remove the offending code and remove the connection string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants