What's the purpose of Session.Close()?
maxifom opened this issue · 1 comments
maxifom commented
I thought (without looking at the source code), that Session is separate from Connection, and that Session.Close() closes session and not the Connection.
Intutively I defer'ed Session.Close() and not wanted to close db connection.
Is there any particular reason for this, as we can call Session.Connection.Close()?
taylorchu commented
There is no need to close session. you only need to close connection. session is just a wrapper of connection with different loggers, which can be different per request/call.