Set the Foreign-Key name
Namespace: NHibernate.Mapping.ByCodeAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
void ForeignKey( string foreignKeyName ) |
Visual Basic |
---|
Sub ForeignKey ( _ foreignKeyName As String _ ) |
Visual C++ |
---|
void ForeignKey( String^ foreignKeyName ) |
Parameters
- foreignKeyName
- Type: System..::..String
The name of the Foreign-Key
Remarks
Where the foreignKeyName is "none" or Empty or all white-spaces the FK won't be created.
Use null to reset the default NHibernate's behavior.