Skip to content

Spekingur/bridger-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bridger-library

honn verkefni 2

Commands for setting up project the first time

Creating project

dotnet new webapi -- creates a new (web) api project

dotnet new classlib -- creates a new class library project

Adding project dependencies

dotnet add link to csproj file to add to reference link to csproj file that is to be added -- if you are in the folder that holds the csproj that you are going to be adding to then you can drop the first link reference

dotnet restore -- restores the project in question and updates if there are changes in the csproj file (such as adding new dependencies)

Setting up database

In Repo folder

dotnet add package Microsoft.EntityFramworkCore.Sqlite

dotnet add package Microsoft.EntityFramworkCore.Design

In Api folder

dotnet ef migrations add InitialCreate

dotnet ef database update

Building and running

dotnet build

dotnet run

About

honn verkefni 2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages