Wrox Programmer Forums
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 8th, 2017, 11:08 AM
Authorized User
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.
The Following User Says Thank You to smiller781 For This Useful Post:
ChristianNagel (June 4th, 2018)

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

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