How can I make composite key enums use int in fluent nhibernate with a convention?
问题 I have a composite key entity where one property is an int, and the other is an enum. The enum is currently mapping by string, but it needs to be int. I have an IUserTypeConvention that already does this, but it doesn't work for composite keys. I have an Accept() method that correctly locates composite keys with enums in it, but I cannot figure out the Apply() code. public class CompositeKeyEnumConvention : ICompositeIdentityConvention, ICompositeIdentityConventionAcceptance { public void