@@ -154,21 +154,21 @@ private void VisitIndexInfo(IndexInfo primaryIndex, IndexInfo index)
154154 secondaryIndex . IsUnique = index . IsUnique ;
155155 var isClustered = index . IsClustered && providerInfo . Supports ( ProviderFeatures . ClusteredIndexes ) ;
156156 secondaryIndex . IsClustered = isClustered ;
157- secondaryIndex . NullDistinct = index . IsNullDistinct ;
157+ secondaryIndex . AreNullsDistinct = index . AreNullsDistinct ;
158158
159159 if ( index . IsUnique && providerInfo . Supports ( ProviderFeatures . UniqueNullTreatment ) ) {
160- // If storage supports SQL 2023 unique nulls treatment, but no value set for NullDistinct
160+ // If storage supports SQL 2023 unique nulls treatment, but no value set for AreNullsDistinct
161161 // it means default settings are used in domain configuration, and we should try to resolve it
162162 // into default treatment for storage via driver to not have changes on models comparison.
163163 // We expect that default behaviour will be defined as either distinct or not distinct.
164- if ( ! secondaryIndex . NullDistinct . HasValue )
165- secondaryIndex . NullDistinct = driver . ServerInfo . Index . NullDistinctByDefault ;
164+ if ( ! secondaryIndex . AreNullsDistinct . HasValue )
165+ secondaryIndex . AreNullsDistinct = driver . ServerInfo . Index . NullDistinctByDefault ;
166166 }
167- else if ( secondaryIndex . NullDistinct . HasValue ) {
167+ else if ( secondaryIndex . AreNullsDistinct . HasValue ) {
168168 // Should never happen, if so then something is wrong with model building.
169169 // If null treatment option ever becomes public per-index setting
170170 // then an exception should be thrown here, but now we late-fix value to correct one.
171- secondaryIndex . NullDistinct = null ;
171+ secondaryIndex . AreNullsDistinct = null ;
172172 }
173173
174174 foreach ( KeyValuePair < ColumnInfo , Direction > pair in index . KeyColumns ) {
0 commit comments