Gremlinq / ExRam.Gremlinq

A .NET object-graph-mapper for Apache TinkerPop™ Gremlin enabled databases.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support of List<string> properties

MartinDemberger opened this issue · comments

Is your feature request related to a problem? Please describe.
Normally I use List when I need a collection property in one of my entities. To use Gremlinq I have to change them all to array.

Describe the solution you'd like
It would help me a lot if I'm able to use List where currently an array is needed.

Describe alternatives you've considered
As an alternative I have to change all entities and have to remember every time that I must use an array.

Additional context
I have changed QueryExecutionTest.AddV_with_byte_array_property():

[Fact]
public virtual async Task AddV_with_byte_list_property()
{
    await _g
        .AddV(new PersonWithList
        {
            Image = new List<byte> { 1, 2, 3, 4, 5, 6, 7, 8 }
        })
    .Verify();
}

public class PersonWithList : Authority
{
    public int Age { get; set; }
    public Gender? Gender { get; set; }
    public List<byte>? Image { get; set; }
    public DateTimeOffset? RegistrationDate { get; set; }
    public VertexProperty<string>[]? PhoneNumbers { get; set; }
    public VertexProperty<object>? SomeObscureProperty { get; set; }
}

Consider sponsoring me
Your ideas might look even more fun to me to implement with a little bit of sponsoring!

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.