Skip to content

jobairkhan/template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Project

Introduction

The original example has been taken from Pluralsight Course. And this has been modified to introduce


Setup

Database setup

  • Build the project
  • Open a command prompt
  • Go to the Template.DAL folder
  • Execute dotnet ef database update

Web

Set Template.Api as your startup project and run on kestrel.

Note: At the moment, an issue is raised for Edge Please use chrome or others to run the swagger


Develpoment Tips

"Migration commands"

To create a migration script dotnet ef migrations add Initial

To execute the script dotnet ef database update

To remove the latest migration script dotnet ef migrations remove

To drop the database dotnet ef database drop

  • here Inital is the name of migration script

Helpful links

When to use TryAddSingleton or AddSingleton?

The difference between TryAddSingleton and AddSingleton is that AddSingleton always appends the registration to the collection, while TryAddSingleton only does this when there exists no registration for the given service type.

When to use tryaddsingleton

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published