Closed ricardoalcantara closed 6 years ago
Hi, Is there a way to call db.Query<Person>() passing the collection name I want to execute the query? Or some Attribute I could use?
db.Query<Person>()
In my case I have a Model defined as UserDocument and my collection would be named users
I trying looking for the documentation but I couldn't find it. Sorry if I missed something.
After I had the issue opened I cloned the code and read the code, til I found the Attribute [CollectionProperty(CollectionName = "users")] And it has solved my issue.
[CollectionProperty(CollectionName = "users")]
Hi, Is there a way to call
db.Query<Person>()
passing the collection name I want to execute the query? Or some Attribute I could use?In my case I have a Model defined as UserDocument and my collection would be named users
I trying looking for the documentation but I couldn't find it. Sorry if I missed something.