c# - How does ASP.NET WebSecurity Authentication manages SQL Server connections? -
i have ef context in asp.net mvc project. if use websecurity have these questions in mind connection management sql server .
- does use same connection ef model request? (i think not)
- does create connection every request? if have 2 connections, 1 ef other websecurity.
- if use 1 connection (since can placed application_start()), if there many users surfing web @ same time? lock other user requests , create slowness?
- does make check database when sees [authorize] attribute on every request? (that makes pages users need logged in.)
i appreciate internal mechanisms.
note: please ignore connection pooling unless webmatrix/websecurity has internal connection pooling.
thanks.
Comments
Post a Comment