The semantics for retrieving metadata seem rather verbose. In order to populate a Document I have I have to call the Meta function several times.
db.Query<TestDataEntity>().Select(s => new Document<TestDataEntity>
{
Id = N1QlFunctions.Meta(s).Id,
Cas = N1QlFunctions.Meta(s).Cas,
Content = s
}).First()
It really seems like there should be a way to just directly map the metadata to a Document or even better to properties on the POCO object. Something like the BsonIdAttribute in MongoDb.
The semantics for retrieving metadata seem rather verbose. In order to populate a Document I have I have to call the Meta function several times.
It really seems like there should be a way to just directly map the metadata to a Document or even better to properties on the POCO object. Something like the BsonIdAttribute in MongoDb.