I am trying to use a Fluent NHibernate naming convention to make my foreign keys follow this naming standard:
fk<table name>_<foreign table name>_<underscore delimited column list>
...but using the conventions, I can't seem to get the table names. I can do something like this:
var fkIndexConvention = ConventionBuilder.Reference.Always(x =>
x.ForeignKey(string.Format("ix{0}_{1}", x.Class.Name, x.Property.Name)));
which seems kinda close, but I'd really like to reference the two related tables and the involved column(s). How can I do this?