/// <summary> /// Sets the Foreign Key. /// </summary> /// <param name="manyToOneInspector">The many to one inspector.</param> /// <param name="foreignKeyName">Name of the foreign key.</param> public static void ForeignKey(this IManyToOneInspector manyToOneInspector, string foreignKeyName) { ManyToOneMapping mapping = manyToOneInspector.GetMapping(); mapping.ForeignKey(foreignKeyName); }