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

  • Home
  • SEARCH
  • 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 9124293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:32:23+00:00 2026-06-17T06:32:23+00:00

Am trying to create an EF5 Model First project at work. After i created

  • 0

Am trying to create an EF5 Model First project at work.

After i created the model and clicked generate database from model, at first it wasn’t creating the code behind. Looking a bit i found the Code Generation Strategy was set to none. I set it to Default (wonder why none is the default, rather than Default) and regenerated the database.

Now it did create the code, but it won’t compile.
the error reads – Partial Declaration must not specify different base classes.
Only this error is in the generated code, in the container class.

I also notice that the SQLce file has no sintax highlighting and there is no Execute Script option on the right button menu, Wich according to the video at http://msdn.microsoft.com/en-us/data/jj205424.aspx there should be.

Does anyone know how to solve any of this issues?

UPDATE: So i installed VS2012 on a Win8 machine and this is correct in there – back to my original machine (Win7) i uninstalled and installed again and the problem remains. I guess this is a Win7 limitation of sorts – like the no win8 app development on Win7.

But unlike Win8 Apps, there should be no reason not to be able to develop DB apps on Win7, so my question should be rephrased as: Is there something i could install to be able to use the full length of DB tools aimed in VS2012 in Win7?

  • 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-17T06:32:24+00:00Added an answer on June 17, 2026 at 6:32 am

    Well i found half an answer.
    By installing the SQL Server Data Tool for Viual Studio 2012 (December update) i get a set of SQL editors – which means i get SQL highlighting

    It works only with SQL files only though – not SQLCE files (god knows why) and i still can’t execute the SQL against a database.

    Anyone has a better solution? Till someone finds one this is the best answer i have found

    EDIT: Actually, now i CAN execute SQL’s against the database – i did an open with and picked source code – now it always has the execute option. SQLCE though, still no change – no highlight and no execute option

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

Sidebar

Related Questions

Trying to create Database as follows: USE Master GO IF NOT EXISTS(SELECT [Name] FROM
I'm trying to deploy a MVC4 EF5 code-first application on Azure. After publishing I
I'm trying create a log specifically for logging user account activity. I created this
I'm trying create an immutable object and initialise it from xml config file in
I trying create a class derivated from System.Web.UI.Page and in override Render i set
I'm trying to use the awsome EF5 with code first - where I need
I am using MySQL with dotConnector from Devart. I'm trying to use the code-first
I'm trying create an intermediate object to work with elsewhere that I can pass
I am trying create custom namespaces after reading the article at Custom Namespaces I
I am trying the EF5 CodeFirst and cannot get the simple setup to work

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.