Mapper: Table creation error when PartitionKey or ClusteringKey have no Name attribute

Description

In the driver I have a clustering key that is an enum.

If I do something like this:

Then I get an ArgumentNullException when the table is created:

var table = new Table<TableX>(session, MappingConfiguration.Global);

It appears the problem is in the PocoData constructor.

However if the column is named then things work fine.

LinqAttributeBasedTypeDefinition is only considering the property name specified at Column when its a ClusteringKey or PartitionKey, if its not specifed at those attributes its assigning null.

Environment

None
Fixed

Assignee

Unassigned

Reporter

Arthur Landim

Labels

None

Reproduced in

None

PM Priority

None

Fix versions

External issue ID

None

Doc Impact

None

Reviewer

None

Pull Request

None

Epic Link

None

Sprint

C# P-NEXT

Pull Requests

None

Size

None

Components

Affects versions

Priority

Major