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 8276731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:27:34+00:00 2026-06-08T08:27:34+00:00

These are my errors that I can’t seem to fix: Schema specified is not

  • 0

These are my errors that I can’t seem to fix:

Schema specified is not valid. Errors: 
The relationship 'Repository.ForumCategory' was not loaded because the type 'RepositoryModel.ForumCategories' is not available.

This is my ForumCategory class:

public class ForumCategory
{
    //
    // Scalar Properties
    public int Id { get; set; }

    public string Name { get; set; }

    public int Order { get; set; }

    public virtual ICollection<Forum> Forums { get; set; }
}

This is my Forum class:

public class Forum
{
    //
    // Scalar Properties
    public int Id { get; set; }

    public int CategoryId { get; set; }

    public string Icon { get; set; }

    public string Name { get; set; }

    public string Description { get; set; }

    public int ThreadCount { get; set; }

    public int PostCount { get; set; }

    public virtual Nullable<DateTime> LastPostDate { get; set; }

    public int Order { get; set; }

    //
    // Navigation Properties
    public virtual ForumCategory Category { get; set; }
}

This is my RepositoryContext:

public class RepositoryContext : ObjectContext
{
    private IObjectSet<ForumCategory> _forumCategories;
    private IObjectSet<Forum> _forums;

    public SHRepositoryContext()
        : base("name=Repository", "Repository")
    {
        ContextOptions.LazyLoadingEnabled = true;
        _forumCategories = CreateObjectSet<ForumCategory>();
        _forums = CreateObjectSet<Forum>();
    }
    public IObjectSet<ForumCategory> ForumCategories
    {
        get { return _forumCategories; }
    }

    public IObjectSet<Forum> Forums
    {
        get { return _forums; }
    }
}

This is my entity model: https://i.stack.imgur.com/txkED.png

Really need help, have read a few answers from people but none seem to be relevant =\

  • 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-06-08T08:27:38+00:00Added an answer on June 8, 2026 at 8:27 am

    The problem was: I had an association overriding my name of the ForumCategory in the model. The solution was: I renamed the association to Forum_Category and renamed the entity to ForumCategory. This fixed my issues!

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

Sidebar

Related Questions

Are there any cases when it's a good idea to throw errors that can
Is there a project that can log errors in requests to Django on Google
Are there runtime errors(= exceptions) that do not generate a traceback? If yes, why
I'm receiving errors from Gtk that I can't track down. Every time my mouse
I just narrowed down one of these strange errors that just occurs at certain
Is there a description of the various errors that NSXMLParser can return? I'm aware
It's a Heap implemented by myself(for algorithm contest).There are some compilation errors that I
there are 26 errors in this one sourceFile that I obtained from sourceForge. It
For CakePHP errors I know that there exists CakeError and AppError solutions. But I
I have a report that shows all errors (if there are any) from a

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.