I think DocumentProperty.IgnoreProperty is not working.
In sample folder I added a property to class Person
[DocumentProperty(IgnoreProperty = true)]
public string ToIgnore { get; set; }
Then I modified DocumentCommand.InsertMultiple to
List<Person> persons = new List<Person>
{
new Person
{
Age = 21,
Name = "A",
ToIgnore = "XXX"
},
new Person
{
Age = 22,
Name = "B",
ToIgnore = "YYY"
}
};
When executing DocumentCommand.InsertMultiple the property ToIgnore is written to Arango.
I think
DocumentProperty.IgnoreProperty
is not working. In sample folder I added a property to class PersonThen I modified
DocumentCommand.InsertMultiple
toWhen executing
DocumentCommand.InsertMultiple
the propertyToIgnore
is written to Arango.It seems the problem is in
where document properties are unconditionally added as
Since we have no type info in this method, I modified the signature to
This requires a change in
The change is the following
Then I implemented
FindDocumentPropertyForType
asNow it works. I don't know if this is the right way to fix it...