For my setup I am using Firebird 2.5 and FluentNHb 1.3.
Now I have a table with 3-column composite Ids:
TransactId bigint
TransactType varchar(2)
EntityId bigint
and mapped this way:
CompositeId()
.Mapped()
.KeyProperty(e => e.TransactId, "TransactId")
.KeyProperty(e => e.TransactType, p =>
{
p.Type(typeof(string));
p.Length(2);
})
.KeyReference(e => e.Entity, "EntityId");
However, I get an exception that the index id exceeded the length. Looking at the generated DDL, I noticed the TransactType length is still the default varchar(255).
Is there another way around this? I appreciate any advice on this matter.