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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:24:43+00:00 2026-06-03T14:24:43+00:00

Below error occurs with Entity Framework Versions 4.3+ http://www.cnblogs.com/shouzheng/archive/2012/03/09/2388177.html (translated) Use EntityFramework the Code

  • 0

Below error occurs with Entity Framework Versions 4.3+

http://www.cnblogs.com/shouzheng/archive/2012/03/09/2388177.html

(translated) Use EntityFramework the Code First Development and one case of MySql database problem

I want to use latest version of EF as migration feature is not available with version <= 4.1.

MySql.Data.MySqlClient.MySqlException (0x80004005): You have an error
in your SQL syntax; check the manual that corresponds to your MySQL
server version for the right syntax to use near ‘NOT NULL,
ProductVersion mediumtext NOT NULL);

ALTER TABLE __MigrationH' at line 6 at
MySql.Data.MySqlClient.MySqlStream.ReadPacket() at
MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow,
Int32& insertedId) at MySql.Data.MySqlClient.Driver.GetResult(Int32
statementId, Int32& affectedRows, Int32& insertedId) at
MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean
force) at MySql.Data.MySqlClient.MySqlDataReader.NextResult() at
MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior
behavior) at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
at System.Data.Objects.ObjectContext.ExecuteStoreCommand(String
commandText, Object[] parameters) at
System.Data.Entity.Internal.InternalContext.ExecuteSqlCommand(String
sql, Object[] parameters) at
System.Data.Entity.Database.ExecuteSqlCommand(String sql, Object[]
parameters) at
System.Data.Entity.Migrations.History.HistoryRepository.BootstrapUsingEFProviderDdl(XDocument
model) at
System.Data.Entity.Internal.InternalContext.<SaveMetadataToDatabase>b__4()
at
System.Data.Entity.Internal.InternalContext.PerformInitializationAction(Action
action) at
System.Data.Entity.Internal.InternalContext.SaveMetadataToDatabase()
at
System.Data.Entity.Internal.DatabaseCreator.CreateDatabase(InternalContext
internalContext, Func
3 createMigrator, ObjectContext objectContext)
at
System.Data.Entity.Internal.InternalContext.CreateDatabase(ObjectContext
objectContext) at System.Data.Entity.Database.Create() at
System.Data.Entity.DropCreateDatabaseAlways1.InitializeDatabase(TContext
context) at
System.Data.Entity.Database.<>c__DisplayClass2
1.b_0(DbContext
c) at
System.Data.Entity.Internal.InternalContext.<>c
_DisplayClass8.b_6()
at
System.Data.Entity.Internal.InternalContext.PerformInitializationAction(Action
action) at
System.Data.Entity.Internal.InternalContext.PerformDatabaseInitialization()
at
System.Data.Entity.Internal.LazyInternalContext.b
_4(InternalContext
c) at
System.Data.Entity.Internal.RetryAction1.PerformAction(TInput input)
at
System.Data.Entity.Internal.LazyInternalContext.InitializeDatabaseAction(Action
1
action) at
System.Data.Entity.Internal.LazyInternalContext.InitializeDatabase()
at
System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type
entityType) at
System.Data.Entity.Internal.Linq.InternalSet1.Initialize() at
System.Data.Entity.Internal.Linq.InternalSet
1.get_InternalContext()
at System.Data.Entity.Internal.Linq.InternalSet1.ActOnSet(Action
action, EntityState newState, Object entity, String methodName) at
System.Data.Entity.Internal.Linq.InternalSet
1.Add(Object entity)
at System.Data.Entity.DbSet`1.Add(TEntity entity) at
DBPreparationTool.Form1.PrepareDB_Click(Object sender, EventArgs e) in
D:\Workspaces\Experiments\FaizeMBRoot\Source\DBPreparationTool\Form1.cs:line
39 at System.Windows.Forms.Control.OnClick(EventArgs e) at
System.Windows.Forms.Button.OnClick(EventArgs e) at
System.Windows.Forms.ButtonBase.OnKeyUp(KeyEventArgs kevent) at
System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m) at
System.Windows.Forms.Control.ProcessKeyMessage(Message& m) at
System.Windows.Forms.Control.WndProc(Message& m) at
System.Windows.Forms.ButtonBase.WndProc(Message& m) at
System.Windows.Forms.Button.WndProc(Message& m) at
System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&
m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32
msg, IntPtr wparam, IntPtr lparam)

  • 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-03T14:24:43+00:00Added an answer on June 3, 2026 at 2:24 pm

    See this blog post: http://brice-lambson.blogspot.com/2012/05/using-entity-framework-code-first-with.html

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

Sidebar

Related Questions

I'm working with Entity Framework code first. The error occurs when trying to save
I have the demonstrator code below that fails to compile with the error: Occurs
I have the below controller. I return the view if a error occurs but
I am getting the below stated error in javascript. This error occurs when i
I am getting the below error when executing my application on a Windows XP
i'm getting the below error, When compiling the Asp.Net web deploy project Could not
I have a website that I get the below error on whenever I navigate
When i am running my application as shown below error shows can you tell
I run mvn install in command line and get stuck by below error. Caused
When I tried To Find Control n data List As I Mentioned Below Error(Object

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.