stephenwalther / movieangularjsapp Goto Github PK
View Code? Open in Web Editor NEWDemonstrates how to create a Movie CRUD app with ASP.NET 5, MVC 6, and AngularJS
Demonstrates how to create a Movie CRUD app with ASP.NET 5, MVC 6, and AngularJS
Configuration = new Configuration()
.AddJsonFile("config.json")
.AddEnvironmentVariables();
An exception of type 'Newtonsoft.Json.JsonReaderException' occurred in Newtonsoft.Json.dll but was not handled in user code
Additional information: Unexpected character encountered while parsing value: ?. Path '', line 0, position 0.
DELETED
Hi
Have you tried open this project in VS2015 RC with luck ?
thanks in advanced
Error:A relational store has been configured without specifying either the DbConnection or connection string to use
Resolve : in MoviesAppContext.cs add
protected override void OnConfiguring(DbContextOptions options)
{
options.UseSqlServer("
Server=(localdb)\mssqllocaldb;Database=MoviesDatabase;Trusted_Connection=True;MultipleActiveResultSets=true");
}
question: "how to install the K Version Manager (KVM) k ef migration add ..."
answer :
http://www.asp.net/vnext/overview/aspnet-vnext/vc
Install the K Version Manager (KVM)
Open a command prompt with Run as administrator.
Run the following command:
@PowerShell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/master/kvminstall.ps1'))"
The script installs KVM for the current user.
Exit the command prompt window and start another as an administrator (you need to start a new command prompt to get the updated path environment).
Upgrade KVM with the following command:
KVM upgrade
You are now ready to run EF migrations.
Run EF migrations
In an administrator command window, change the directory to the project directory. The project directory contains the project.json file.
In a command prompt, run the following:
k ef migration add initial
k ef migration apply
I'm not able to open this Project in Visual Studio With Update 4. Please assist
i clone your code at http://stephenwalther.com/archive/2015/01/13/asp-net-5-and-angularjs-part-2-using-the-mvc-6-web-api and run on visual Studio 2015 CTP.
in file project.json if you use
"Microsoft.AspNet.Mvc": "6.0.0-beta1", as your above tutorial, it will cause error
in startup.cs at line services.AddMvc();
. I resolve this problem by use "Microsoft.AspNet.Mvc": "6.0.0-beta3",
but why? can you explain it for me , and i also ask you a question : "when is MVC 6 release?"
thank you.
"Because I made changes to the Movie model, I need to update the database to match the new model. I opened up a Command Prompt, navigated to the project folder and ran the following two commands: 1 2 k ef migration add movieProps k ef migration apply"
it is not easy as something you say.
i resolve this problem by :rename database
protected override void OnConfiguring(DbContextOptions options)
{
options.UseSqlServer("Server = (localdb)\mssqllocaldb; Database = Movies1Database; Trusted_Connection = True; MultipleActiveResultSets = true");
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.