• Stars
    star
    222
  • Rank 172,509 (Top 4 %)
  • Language
    C#
  • License
    MIT License
  • Created almost 8 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Building REST APIs using ASP.NET Core and Entity Framework Core

Building REST APIs using ASP.NET Core and Entity Framework Core

License Build status

Blog post
Frameworks - Packages - Patterns - Features used

  • ASP.NET Core
  • Entity Framework Core
  • Entity Framework Migrations - Code First
  • Repository pattern
  • FluentValidation
  • Automapper
  • Global exception handler
  • Cors
dotnet-core-api-14

Installation Instructions (1)

Installation Instructions (2) - Visual Studio

  1. Open the solution in VS 2017
  2. Open Package Manager Console and navigate to Scheduler.API by typing cd path_to_Scheduler.API
  3. Modify the connection string in appsettings.json to reflect your database environment
  4. run the following commands
    1. Add-Migration Initial
    2. Update-Database
  5. Build and run the Scheduler.API project

Installation Instructions (2) - Without Visual Studio

  1. Clone or download the repository
  2. Open a terminal/cmd
  3. Open Scheduler.API folder in your favorite text editor (preferably VS Code). If you get a message Required assets to build and debug are missing from your project. Add them?, click Yes
  4. Navigate to Scheduler.Model and run dotnet restore
  5. Navigate to Scheduler.Data and run dotnet restore
  6. Navigate to Scheduler.API and run dotnet restore
  7. If you haven't SQL Server (Linux or MAC) set "InMemoryProvider": true in the appsettings.json file and skip to the last step
  8. Modify the connection string in appsettings.json to reflect your database environment
  9. While at Scheduler.API run the following commands
    1. Add-Migration Initial
    2. Update-Database
  10. While at Scheduler.API run dotnet run

This project is used as the backend API in this Angular 2 - TypeScript SPA

Microsoft Azure Deployment

Learn how to deploy an ASP.NET Core app on Microsoft Azure here.

Follow chsakell's Blog

Facebook Twitter
Microsoft Web Application Development
facebook twitter-small

License

Code released under the MIT license.

More Repositories

1

mvcarchitecture

ASP.NET MVC Solution Architecture – Best Practices
C#
491
star
2

aspnet-core-identity

ASP.NET Core Identity Series
JavaScript
485
star
3

aspnet5-angular2-typescript

Cross-platform Single Page Applications with ASP.NET Core, Angular 4 & TypeScript
C#
348
star
4

spa-webapi-angularjs

Building Single Page Applications using Web API and AngularJS
C#
254
star
5

angular2-features

Angular CRUD ops, Modals, Animations, Pagination, DateTimePicker, Directives and much more..
TypeScript
175
star
6

aspnet-core-signalr-angular

Real-time applications using ASP.NET Core, SignalR & Angular
C#
143
star
7

ionic2-angular2-firebase

Building hybrid mobile apps using Ionic 2 and Firebase
TypeScript
93
star
8

webapiunittesting

ASP.NET Web API Unit Testing
C#
35
star
9

mongodb-csharp

MongoDB for C# developers
C#
30
star
10

wcfdependencyinjection

Dependency injection in WCF
C#
24
star
11

planet-scale-azure

Globally-distributed applications with Microsoft Azure - Free e-book
C#
23
star
12

multi-client-api

Building multi-client APIs in ASP.NET
C#
19
star
13

rxjs-in-angular

ReactiveX operators in Angular
TypeScript
13
star
14

aspnet-core-smartresult

ASP.NET Core MVC Filter that transforms result types based on device type
C#
12
star
15

webapi-fileupload

Web API File Uploading (Desktop and Web client)
C#
11
star
16

Swashbuckle.AspNetCore.SwaggerGen.ConventionalRouting

Swagger with Conventional Routing support
C#
10
star
17

gadgetstore

AngularJS feat. Web API
C#
9
star
18

odatawebapi

ASP.NET Web API feat. OData
JavaScript
9
star
19

browsedotnet

BrowseDotNET: Manage your .NET Solutions and code snippets
C#
8
star
20

typescript-ng-bower-gulp

TypeScript, AngularJS, Gulp and Bower in Visual Studio 2015
C#
8
star
21

online-store

C#
7
star
22

documentdb-dotnet-core

JavaScript
7
star
23

azure-functions-proxies

Azure Functions Proxies in Action
C#
7
star
24

azure-github-ci-cd

Continuous Integration & Delivery with Microsoft Azure & GitHub – Best Practices
C#
6
star
25

serverless-azure-functions

Building serverless apps with Azure Functions
HTML
5
star
26

angular2-tour-of-heroes

The TOUR OF HEROES tutorial's code completed
TypeScript
5
star
27

wcfauthheader

Secure WCF Services with custom encrypted tokens
C#
4
star
28

webapiangularjssecurity

AngularJS feat. Web API – Security
C#
4
star
29

webapicustomvalidation

Web API powerful Custom Model Validation with FluentValidation
C#
3
star
30

mvcsessionperfomance

ASP.NET MVC Session state Performance Issue
C#
3
star
31

sendingemailsapp

Sending Emails in ASP.NET: Do it right
C#
3
star
32

statemanagement

State Management in ASP.NET (ViewState, SessionState & ApplicationState)
C#
3
star
33

asynchronousprogramming

Asynchronous programming using Tasks
C#
2
star
34

mapcrudstoredprocedures

Map CRUD Stored Procedures to Entities with Entity Framework
C#
2
star
35

adonetbatchqueries

Batch queries, Multiple Result Sets and Parameterized Queries in ADO.NET
C#
2
star
36

ssr-spa-navigation

Instant page rendering and seamless navigation for SPAs
C#
2
star
37

aspnetcaching

Caching SQL Server data in ASP.NET
C#
2
star
38

weather-app

JavaScript
2
star
39

dotnetcoreangular-to-azure

Azure App Service CI/CD using AppVeyor
TypeScript
2
star
40

usercontrol

ASP.NET Web Form User Controls – How to use them
C#
1
star
41

sqlcommands

SqlCommands: What to choose between SqlDataAdapter, ExecuteScalar and ExecuteNonQuery
C#
1
star
42

wcfproxies

WCF Proxies - From beginner to expert
C#
1
star
43

rxjs-samples

RxJS samples
TypeScript
1
star
44

webmail-server

C#
1
star
45

azure-service-fabric-getting-started

Azure Service Fabric - Getting Started
C#
1
star
46

maui-trackizer

.NET MAUI UI implementation for a subscription tracking app
C#
1
star
47

extnetdataview

Ajax enabled lists using the Ext.NET component framework
C#
1
star
48

aspneturlrouting

URL Rooting in ASP.NET (Web Forms)
C#
1
star
49

livesearchwithwebapi

Related entities and live search with Web API and Entity Framework
C#
1
star
50

wcf-dot-net-core

WCF Proxies in .NET Core
C#
1
star
51

webapiroutingconstraints

Web API Custom Routing Constraints
C#
1
star