Skip to content

Metadata Semantics Too Verbose #262

@groogiam

Description

@groogiam

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions