Reputation: 451
I Use ArangoDB Graph Database with ArangoDB-NET(C# Driver).
how can I map properties of c# object to attributes of ArangoDB?
more than any thing, I need to mapping when I insert a document, because of the ArangoDB's id create according of this pattern : "CollectionName/_key"
ArangoDB's id= _key(attribute) <================> C#' id= Id(property)
any one can help me?
thanks a lot
Upvotes: 0
Views: 145
Reputation: 68305
You can try to use AliasField
attribute which should map specified field to property. Dummy entity in unit tests uses this attribute to map lower case version of properties.
Upvotes: 1