berrybeat / Neo4j.Berries.OGM

This repository adds an OGM functionality for csharp
https://berrybeat.com/
MIT License
23 stars 2 forks source link

Session and AsyncSession should be accessible by developers #14

Closed farhadnowzari closed 6 months ago

farhadnowzari commented 6 months ago

Is your feature request related to a problem? Please describe. At the moment, in case a project needs to execute a cypher query against the database, it needs to create a session from the public driver and it is easy to mistake and directly run a command using the driver and run the cypher against the default database. It should be possible to access the sessions with readonly access.

Describe the solution you'd like expose the DatabaseContext.Session and DatabseContext.AsyncSession with private set;