Hi!
I'm starting to use the confORM and I'm loving it! For real! :)
But I was trying things here and I found out that I can customize the <key column=""> value using both methods.
First one is doing this:
public class JoinedClassColumnNameApplier : IPatternApplier<Type, IJoinedSubclassAttributesMapper>
{
public void Apply(Type subject, IJoinedSubclassAttributesMapper applyTo)
{
applyTo.Key(km => km.Column(subject.Name + "Id"));
}
public bool Match(Type subject)
{
return true;
}
}
and doing this:
void mapper_AfterMapJoinedSubclass(IDomainInspector domainInspector, Type type, IJoinedSubclassAttributesMapper joinedSubclassCustomizer)
{
joinedSubclassCustomizer.Key(
key =>
{
key.Column(x =>
{
x.Name(type.Name + "Id");
});
});
}
But, is there any difference? Or it's just another way to do the same thing?!
Thanks in advance!
PS: Fabio, congratulations man. You're the best! :)