I have an entity mapping similar to this.
public class MyClassMap : ClassMap<MyClass> { public MyClassMap() { Id(x => x.Id); Map(x => x.Code); Map(x => x.Name); Map(x => x.Description); } }
I would like to know if there is any possible way to have a code field (which is not part of the main key) autogenerated by the sequence. There is a GeneratedBy property, but it is only a member of the IdentityPart class.
source share