Replies: 4 comments 2 replies
-
Declare a property To create the documents in a separate table, pass a
|
Beta Was this translation helpful? Give feedback.
-
when to use ISession vs IDocumentManager? ISession is the low-level data access service where you essentially interact with SQL in the YesSql model. Whatever you want to do in the document DB, you can do it via ISession. And if you want to fetch documents via arbitrary queries (i.e. SELECT ... WHEREs) you have to do it via ISession. IDocumentManager is a higher-level services that uses ISession and provides a simplified, as well as cached access layer to single documents of a given type. This is useful if for your feature you want to keep a single piece of JSON in the DB. E.g. Queries keeps all the Queries in a single document, because you'll never really have more than a handful of them, so having them in separate documents (i.e. DB rows) would hurt performance. |
Beta Was this translation helpful? Give feedback.
-
String methods not suppored when using LINQ with ISession:
(there might be more, but these are the two I've experienced problems wtih) Supported string methods: sebastienros/yessql#576 (comment) |
Beta Was this translation helpful? Give feedback.
-
This is great but would you consider an even better contribution to the docs? |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm starting a thread to document all the questions and problems I've faced regarding these topics.
Beta Was this translation helpful? Give feedback.
All reactions