0% found this document useful (0 votes)
5 views3 pages

ASP.NET Core Model Binding Guide

The document discusses various concepts related to ASP.NET, including model binding, ActionResult responses, and the differences between generic and non-generic types. It covers dependency injection, instance lifespans (singleton, transient, and scoped), and database approaches (DB first vs. code first) using ORM like Entity Framework. Additionally, it touches on Identity Framework, database seeding, and the importance of asynchronous functions in user management.

Uploaded by

dikxu7611
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views3 pages

ASP.NET Core Model Binding Guide

The document discusses various concepts related to ASP.NET, including model binding, ActionResult responses, and the differences between generic and non-generic types. It covers dependency injection, instance lifespans (singleton, transient, and scoped), and database approaches (DB first vs. code first) using ORM like Entity Framework. Additionally, it touches on Identity Framework, database seeding, and the importance of asynchronous functions in user management.

Uploaded by

dikxu7611
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

model binding

Actionresult - k response kasto response auch vancha

iaction chai vamdain

non generic vs genric

[FromQuery]

list operations

linq and lambda

dependency injection

instace life span

postgre

DB first approach and

code first approach - uses ORM to convert our language to sql code for eg. c sharp
to sql

which is stored in file named as Migration

orm

entity framework(Microsoft le deko) and draper(community le)

instance and object

dependency injection - (constructor ma call huncha, )

Instance Lifespan in Dependency Injection

singleton - ek choti program run vayesi, hold garera baschaaaaa program end nahuda
samma

transient - every call ma euta euta object call huncha,

addscoped - euta instance use vairackhcha, every function ko lagi

Interface
w-7

Identity Framework

Identity table(has prefix ASPNET)


default feature cha, suthentication ko hashing ko etc
manually garna vanda identoity use garne

Database Seeding

system bata database ma pathaune , not through user

migration ko query chalne ko db ma, tei vayera data seeding garda, migration ma
rakhna

OR

onmodelcreating ma rakhda huncha(Dbcontext ma)

ASPnet wala ko lagi, repository banaudainau

service matra user garchau

usermanager

asysnc function ma task le wrap garnu parcha, return type lai


userrolemanager garneee

usermanager ko function research garneee!!!

You might also like