class Example
{
public OwnId Id { get; set; }
public string SomeData { get; set; }
}
class AnotherExample
{
public OwnId Id { get; set; }
public string SomeData { get; set; }
}
class OwnId
{
public long Value { get; set; }
}
I have this code, I want to generate an id using HiLo but I get an error:
builder.HasKey(e => e.Id);
builder.Property(e => e.Id).UseHiLo();
System.ArgumentException: PostgreSQL sequences cannot be used to generate values for the property 'Id' on ent ity type 'Example' because the property type is 'OwnId'. Sequences can only be used with integer propert ies.
Is it possible to use my structure?