I have a db heritage structure like
table t1
(
c0 bigint, // pk
c10 bigint, // deleted flag
)
table t2
(
c0 bigint, // pk
c1 bigint, // fk to t1.c0
c10 bigint, // deleted flag
)
and classes
class Entity
{
public virtual long Id { get; private set; }
public virtual long Property { get; set; }
}
class Parent : Entity
{
public virtual ICollection<Child> Childs { get; private set; }
}
class Child : Entity { }
After matching with MappingByCode or FNH, SchemaExport will create the columns in the wrong order.
table t2
(
c0 bigint,
c10 bool,
c1 bigint,
)
How can I make sure the columns are created in ascending order?
source
share