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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T04:03:28+00:00 2026-06-16T04:03:28+00:00

I am trying to create MVC project with Entity Framework. I have 3 Projects

  • 0

I am trying to create MVC project with Entity Framework.
I have 3 Projects in Solution

  • SerialTracker.Common
  • SerialTracker.Model
  • SerialTracker.Web

Common and Model are compiled like library, so Web is using them.
Model is also using Common.

My probelm is here:

Model generate from *.edmx ==> *.Context.tt ==> whitch auto generates *.Context.cs:

namespace SerialTracker.Model
{
    using System;
    using System.Data.Entity;
    using System.Data.Entity.Infrastructure;

    public partial class SerialTrackerEntities : DbContext
    {
        public SerialTrackerEntities()
            : base("name=SerialTrackerEntities")
        {
        }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            throw new UnintentionalCodeFirstException();
        }

        public DbSet<Role> Role { get; set; }
        public DbSet<User> User { get; set; }
    }
}

I have error, that Infrastucture does not exist in System.Data.Entity. I tried adding some References, but i think the problem is in another place.

//EDIT:
I reinstaled NuGet package for this project, but now i have error and doesn’t exist

Sorry for my poor English.

  • 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-16T04:03:29+00:00Added an answer on June 16, 2026 at 4:03 am

    S̶o̶ ̶I̶ ̶m̶a̶n̶u̶a̶l̶y̶ ̶a̶d̶d̶e̶d̶ ̶f̶i̶l̶e̶ ̶S̶e̶r̶i̶a̶l̶T̶r̶a̶c̶k̶e̶r̶.̶t̶t̶ ̶t̶o̶ ̶S̶e̶r̶i̶a̶l̶T̶r̶a̶c̶k̶e̶r̶.̶e̶d̶m̶x̶.̶
    T̶h̶i̶s̶ ̶f̶i̶l̶e̶ ̶I̶ ̶c̶o̶p̶i̶e̶d̶ ̶f̶r̶o̶m̶ ̶a̶n̶o̶t̶h̶e̶r̶ ̶p̶r̶o̶j̶e̶c̶t̶.̶
    N̶o̶w̶ ̶i̶s̶ ̶p̶r̶o̶j̶e̶c̶t̶ ̶g̶e̶n̶e̶r̶a̶t̶e̶ ̶e̶n̶t̶i̶t̶i̶e̶s̶ ̶R̶i̶g̶h̶t̶.̶

    EDIT (04-29-2014):
    Renewed answer:
    You can delete file *.tt and recreate it with
    Add -> New Item -> EF 5.x DbContextGenerator (or EF 6.x …)

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

Sidebar

Related Questions

I'm trying to create ASP.NET MVC Application with Entity Framework, which has One to
I am trying to create a Spring MVC web app (Spring Framework 3.0.5). I
I'm trying to use ASP MVC 4 and Entity Framework 4 to create pretty
I have a ASP.NET MVC 4 project - CodeFirst with Entity Framework - that
I have an ASPNET MVC 3 project made with Entity Framework 4 (database first).
I trying to do something like that First, Create a new mvc 3 project
I'm trying to create a sitemap in an ASP.NET MVC project. This code in
I am trying to create a drop down list using asp.net mvc. Model: public
In a MVC project am trying to create a view which has the Title
I'm trying to architect my MVC web project and I'm running into a bit

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.