Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4091572
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T19:23:02+00:00 2026-05-20T19:23:02+00:00

This will likely (hopefully?) be an amateur hour type question. :) I’m new to

  • 0

This will likely (hopefully?) be an “amateur hour” type question. 🙂

I’m new to interfaces, etc. and doing things correctly, but I have an MVC 3 project that references a C# library project.

In the C# library project, I have the following code:

    public interface IRepositoryAddable<T>
    {
        void Add(T entity);
    }

I repeat this sort of code for other types of repository so that I can make things easier and standard across all my repositories.

For example, I have a repository for anything of type “ISkill”:

public interface ISkillRepository : IRepositoryAddable<ISkill>, IRepositoryDeleteable<ISkill>, IRepositoryDeleteableByID<ISkill, int>, IRepositoryGettableByID<ISkill, int>, IRepositoryListable<ISkill>, IRepositorySavable<ISkill>
{ }

Then, in my actual repository, I have:

    public class SkillRepository : ISkillRepository
    {
        public void Add(Skill skillToAdd)
        {
            return;
        }
}

As far as I’m aware, this should suffice to implement the ISkillRepositoryListable interface. However, I receive the following error:

Error 5 ‘DakotaSkills.MVC.Models.Repository.SkillRepository’
does not implement interface member
‘DakotaSkills.Lib.Interfaces.Repository.IRepositoryAddable.Add(DakotaSkills.Lib.Interfaces.ISkill)’ C:\Users\Sean\Projects\Web\DakotaSkills\src\DakotaSkills.MVC\Models\Repository\SkillRepository.cs 11 18 DakotaSkills.MVC

Other interface methods for the repository have shown as being implemented fine and I’m not quite sure what I’m doing wrong. For the record, my “Skill” type implements “ISkill” and I receive no error on its implementation.

Help?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T19:23:03+00:00Added an answer on May 20, 2026 at 7:23 pm

    Your Add would not accept some other class that also implemented ISkill. You need to take an ISkill, not just a Skill. That also suggests that your implementation of Add, should it ever do anything, should do so through ISkill only and not by calling other Skill methods you may know about.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This will appear to a duplicate question but please consider this. I am doing
This will hopefully be a simple one: I have a div I want to
This will be probable quite odd question. But i thought I will give it
This will probably be a bot of a waffly question but ill try my
This will be simple for you guys: var uri = new Uri(pack://application:,,,/LiftExperiment;component/pics/outside/elevator.jpg); imageBitmap =
I might be going about this all wrong, so hopefully someone will tell me
[This will only make sense if you've seen Kevin Smith's 'Erlang in Practice' screencasts]
This will probably be obvious but I can't find the best way. I want
This will be implemented in Javascript (jQuery) but I suppose the method could be
This will be a bit subjective, I'm afraid, but I'd value the advice of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.