Setting length on composite -key property
This is a follow up to an existing closed discussion which can be found here.
Ive compiled the latest trunk and I'm able to set the Type/Length properties, however when I export the schema to SQL Server I end up with two varchar(255) fields. Ive included the mapping I'm using to try and get this working.
Table("DummyTable");
CompositeId()
.KeyProperty(x => x.Id1, kp => kp.ColumnName("Id1").Type("AnsiString").Length(4))
.KeyProperty(x => x.Id2, kp => kp.ColumnName("Id2").Type("AnsiString").Length(4));
Might be something obvious Im doing wrong as Im fairly new to all this.
2 Posted by Andrew on 08 Dec, 2010 05:24 PM
Adding the mapping it generated, the lengths clearly look ok here but not in the SQL database.