chsakell / dotnetcore-entityframework-api Goto Github PK
View Code? Open in Web Editor NEWBuilding REST APIs using ASP.NET Core and Entity Framework Core
Home Page: http://wp.me/p3mRWu-18G
License: MIT License
Building REST APIs using ASP.NET Core and Entity Framework Core
Home Page: http://wp.me/p3mRWu-18G
License: MIT License
where is the SchedulerDb srcipt,Thanks
Hi,
can you please give me direction what i am doing wrong
here is sample
public class Post: IEntityBase
{
public int Id{get;set;}
}
Id alwyas negative number on add or get what is wroing
as i set database generted option to identity and kye but still is negative
"Microsoft.NETCore.App": {
"version": "1.1.0",
"type": "platform"
},
Severity Code Description Project File Line Suppression State Error
MSB4019 The imported project "C:\ProgramFiles\dotnet\sdk\1.0.1\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Props" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk. Scheduler.API C:\Users<name>\Documents\Visual Studio 2015\Projects\dotnetcore-entityframework-api-master\Scheduler.API\Scheduler.API.xproj 8
The following PowerShell cmdlet, executed in the Package Manager Console of Visual Studio 2017 Enterprise (15.2.26430.14) with the Default Project:
dropdown listbox set to Scheduler.API
causes an error:
Add-Migration -Name Initial -Project Scheduler.API
Startup project 'Scheduler.Model' targets framework '.NETStandard'. This framework is not intended for execution and may fail to resolve runtime dependencies. If so, select a different startup project and try again.
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.EntityFrameworkCore.Design, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'Microsoft.EntityFrameworkCore.Design, Culture=neutral, PublicKeyToken=null'
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at Microsoft.EntityFrameworkCore.Tools.ReflectionOperationExecutor..ctor(String assembly, String startupAssembly, String projectDir, String contentRootPath, String dataDirectory, String rootNamespace, String environment)
I have updated all NuGet packages in all 3 projects to the latest editions (July 1, 2017).
{
"ConnectionStrings": {
"DefaultConnection": "Server=xx.xx.xx.xxx;Database=DBNAME;uid=sa;pwd=password;MultipleActiveResultSets=true;"
},
"AppSettings": {
"InMemoryProvider": "false"
}
}
Question:
On EF core we used connection string on appsetting.jason
but our customer can't open database port they have the security issue on pci compliance.
Our API will install on azure, but customer database install on customer local site.
Best,
Uthen
Navigated to the API directory and ran the migration command. Any idea ?
dotnet : Your target project 'scheduler.API' doesn't match your migrations assembly 'Scheduler.API'. Either change your target project or change your migrations assembly.
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.