Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 6 > BOOK: Professional C# 6 and .NET Core 1.0
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
BOOK: Professional C# 6 and .NET Core 1.0
This is the forum to discuss the Wrox book Professional C# 6 and .NET Core 1.0 by Christian Nagel; ISBN: 978-1-119-09660-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional C# 6 and .NET Core 1.0 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 8th, 2017, 11:08 AM
Authorized User
Points: 66, Level: 1
Points: 66, Level: 1 Points: 66, Level: 1 Points: 66, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Aug 2016
Posts: 11
Thanks: 0
Thanked 2 Times in 2 Posts
Default DB Migrations: pg 1170

I thought I would post this in case it helps someone else out there.

After building up the models in the MenuSample project and trying to run:

>dotnet ef migrations add InitMenuCards
I was getting an error.

My answer was to go to the MvcMovies tutorial at:
- https://docs.microsoft.com/en-us/asp...p/adding-model

and steel the tools section for project.json:
"tools": {
"Microsoft.EntityFrameworkCore.Tools": "1.0.0-preview2-final"

and I also had to steel this for the dependencies section:
"Microsoft.EntityFrameworkCore.Tools": {
"version": "1.0.0-preview2-final",
"type": "build"

then everything seemed to work.
I was able to run the initial migration and I see the Migrations folder and ...InitMenuCards.cs in the folder.

Moving on to finish this section's reading.
Reply With Quote
The Following User Says Thank You to smiller781 For This Useful Post:
ChristianNagel (June 4th, 2018)

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch 3, Pg 86, 11. DB name "WSS_Content_My"???? barbunc BOOK: Professional SharePoint 2013 Administration 1 June 1st, 2015 03:50 AM
Pg 668, Extension of pg 665 "Try It Out" engindav BOOK: Ivor Horton's Beginning Java, Java 7 Edition 1 December 20th, 2013 04:19 PM
Data Migrations vbboyd BOOK: Beginning ASP.NET 4.5 : in C# and VB 3 November 30th, 2012 07:47 PM
Ch12 pg 406-407 (Try it Out)access db within VWD martycom BOOK: Beginning ASP.NET 4 : in C# and VB 6 August 24th, 2010 04:37 PM
info from pg won't post to db scottiegirl PHP Databases 3 September 26th, 2003 12:48 PM

All times are GMT -4. The time now is 01:36 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.