-
Notifications
You must be signed in to change notification settings - Fork 0
/
notes.txt
50 lines (33 loc) · 2.03 KB
/
notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
http://json2csharp.com/
https://andrewlock.net/model-binding-json-posts-in-asp-net-core/
https://exceptionnotfound.net/asp-net-core-demystified-model-binding-in-mvc/
Migrations:
In Visual Studio, you can use the Package Manager Console to apply pending migrations to the database:
PM> Update-Database
Alternatively, you can apply pending migrations from a command prompt at your project directory:
> dotnet ef database update
https://docs.microsoft.com/en-us/aspnet/core/security/authorization/secure-data
https://www.youtube.com/watch?v=CJIrmzHoY_M
https://www.youtube.com/watch?v=ZWCRgDGgbPU
Claim vs Role based authentication
https://stackoverflow.com/questions/22814023/role-based-access-control-rbac-vs-claims-based-access-control-cbac-in-asp-n
https://stackoverflow.com/questions/42471866/how-to-create-roles-in-asp-net-core-and-assign-them-to-users
login fails
https://stackoverflow.com/questions/24214840/cannot-login-on-asp-net-identity-2-site-after-programmatic-user-creation
DB Seeding
---------------
https://docs.microsoft.com/en-us/aspnet/core/data/ef-mvc/intro
https://docs.microsoft.com/en-us/aspnet/core/data/ef-mvc/intro#add-code-to-initialize-the-database-with-test-data
In older tutorials, you may see similar code in the Configure method in Startup.cs. We recommend that you use the Configure method only to set up the request pipeline.Application startup code belongs in the Main method.
https://www.locktar.nl/programming/net-core/seed-database-users-roles-dotnet-core-2-0-ef/
https://stackoverflow.com/questions/42471866/how-to-create-roles-in-asp-net-core-and-assign-them-to-users
https://docs.microsoft.com/en-us/ef/core/get-started/aspnetcore/new-db
https://stackoverflow.com/questions/37466104/identity-new-table-foreign-key-to-aspnetusers
https://dotnetthoughts.net/seed-database-in-aspnet-core/
bootstrap 3 docs:
https://getbootstrap.com/docs/3.3/css/
razor syntax
https://docs.microsoft.com/en-us/aspnet/core/mvc/views/razor
Ef core ef relationships, code first
---
https://docs.microsoft.com/en-us/ef/core/modeling/relationships