File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public class Table : IRelationalModel
30
30
private readonly LinkedHashMap < string , Column > columns = new LinkedHashMap < string , Column > ( ) ;
31
31
private readonly Dictionary < ForeignKeyKey , ForeignKey > foreignKeys = new Dictionary < ForeignKeyKey , ForeignKey > ( ) ;
32
32
private readonly Dictionary < string , Index > indexes = new Dictionary < string , Index > ( ) ;
33
- private int uniqueInteger ;
33
+ private int ? uniqueInteger ;
34
34
private readonly Dictionary < string , UniqueKey > uniqueKeys = new Dictionary < string , UniqueKey > ( ) ;
35
35
private string catalog ;
36
36
private string comment ;
@@ -189,7 +189,7 @@ public string Schema
189
189
/// <value>The unique number of the Table.</value>
190
190
public int UniqueInteger
191
191
{
192
- get { return uniqueInteger ; }
192
+ get { return uniqueInteger ?? throw new InvalidOperationException ( nameof ( UniqueInteger ) + " has not been supplied" ) ; }
193
193
internal set { uniqueInteger = value ; }
194
194
}
195
195
You can’t perform that action at this time.
0 commit comments