File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
NHibernate.Test/MappingTest Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ public void GetAliasWithTableSuffixRespectsMaxAliasLength(string columnName)
81
81
// Test case is meant for a max length of 10, adjusts name if it is more.
82
82
columnName = AdjustColumnNameToMaxLength ( columnName , dialect , 10 ) ;
83
83
84
- var table = new Table ( ) ;
84
+ var table = new Table ( ) { UniqueInteger = 1 } ;
85
85
var column = new Column ( columnName ) ;
86
86
87
87
string generatedAlias = column . GetAlias ( dialect , table ) ;
Original file line number Diff line number Diff line change @@ -185,12 +185,13 @@ public string Schema
185
185
186
186
/// <summary>
187
187
/// Gets the unique number of the Table.
188
+ /// Used for SQL alias generation
188
189
/// </summary>
189
190
/// <value>The unique number of the Table.</value>
190
191
public int UniqueInteger
191
192
{
192
193
get { return uniqueInteger ?? throw new InvalidOperationException ( nameof ( UniqueInteger ) + " has not been supplied" ) ; }
193
- internal set { uniqueInteger = value ; }
194
+ set { uniqueInteger = value ; }
194
195
}
195
196
196
197
/// <summary>
You can’t perform that action at this time.
0 commit comments