Skip to content

StoneIsDeveloper/netcoredemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

netcoredemo

1 EF in Core

1.1 Use Miagration ,Code Fisrst

Code First

I like code first style,it can help me to crate or update table easily. So the first thing is to install ef core pakage

Migration 123

  1. Add-Migration AddBlog -StartupProject ef.mvc
  2. Script-Migration -StartupProject ef.mvc
  3. Update-Database -StartupProject ef.mvc

1.2 Identity AUthtication

  • NetCore Mvc temple provide authentication method,why don't use it
    • I choose Indivual Authentication
  • Then use ef migration to update table that Indivaul Auth prodivder to my sql server database
    • it's very easy to establish an appliaction whith auth

public class student{

}

This is the first level of quoting.

This is nested blockquote.

Back to the first level.

  • Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
  • Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse id sem consectetuer libero luctus adipiscing.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages