I want to know if Entity Framework should be used in a connected or disconnected architecture?
Specially, I want to know how I can use EF in a layered architecture. For example how can I use it in ASP.NET code behind?
NOTE: There are requests for closing this question as "Primarily opinion-based" and this is clearly not the case: EF can be used in both kind of scenaraios in a very specific way. That's not an opinion, but a clear fact. Noone can discuss it, or agree or disagree. If the question was about how to implement a disconnected scenario, then it would become "opinion-based", but not as is stated right now.