couchbaselabs / couchbaselabs/Linq2Couchbase
Linq queries not working when object name is not match with collection name
- Dominant language
- C#
- Stars
- 98
- Forks
- 50
- PR merge metrics
- No merged PRs in 30d
Description
We are facing a problem integrating Linq queries with Couchbase. Basically, "SpinAggregate" in the code is our class name (object name) for the collection and our collection name is "SpinAggregates" in the database (with an "s" added to the end of the class name).
Related to this reason Linq queries are not working correctly on the code. Because our object name and collection name of the DB is different and query is not returning result from DB. Can you tell me how we can solve this problem to use Couchbase Linq queries on code?
I have attached query (code) that how we are quering by using Linq here. That code is correct. But the problem is it not picking data from collection.
I guess _bucketContext dll not picking correct collection from the DB based on object (_bucketContext.Query())
Thank you
Dilan Jayamuni
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the _bucketContext.Query() call and reproduce it using the SpinAggregate type with the SpinAggregates collection name. Trace how the LINQ provider resolves a type to a Couchbase collection and check whether any mapping or configuration is documented or available. Done means the query returns documents when the class and collection names differ.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100