ra0o0f / arangoclient.net

ArangoDB .NET Client with LINQ support
Apache License 2.0
99 stars 37 forks source link

Naming Collection on Query #93

Closed ricardoalcantara closed 6 years ago

ricardoalcantara commented 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?

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.

ricardoalcantara commented 6 years ago

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.