File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
FreeSql.Provider.Custom/SqlServer
FreeSql.Provider.Odbc/SqlServer Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -385,14 +385,14 @@ from sys.index_columns a
385385 if ( ! indexColumns . TryGetValue ( object_id , out loc10 ) )
386386 indexColumns . Add ( object_id , loc10 = new Dictionary < string , DbIndexInfo > ( ) ) ;
387387 if ( ! loc10 . TryGetValue ( index_id , out loc11 ) )
388- loc10 . Add ( index_id , loc11 = new DbIndexInfo ( ) ) ;
388+ loc10 . Add ( index_id , loc11 = new DbIndexInfo { Name = index_id } ) ;
389389 loc11 . Columns . Add ( new DbIndexColumnInfo { Column = loc9 , IsDesc = is_desc } ) ;
390390 if ( is_unique && ! is_primary_key )
391391 {
392392 if ( ! uniqueColumns . TryGetValue ( object_id , out loc10 ) )
393393 uniqueColumns . Add ( object_id , loc10 = new Dictionary < string , DbIndexInfo > ( ) ) ;
394394 if ( ! loc10 . TryGetValue ( index_id , out loc11 ) )
395- loc10 . Add ( index_id , loc11 = new DbIndexInfo ( ) ) ;
395+ loc10 . Add ( index_id , loc11 = new DbIndexInfo { Name = index_id } ) ;
396396 loc11 . Columns . Add ( new DbIndexColumnInfo { Column = loc9 , IsDesc = is_desc } ) ;
397397 }
398398 }
Original file line number Diff line number Diff line change @@ -388,14 +388,14 @@ from sys.index_columns a
388388 if ( ! indexColumns . TryGetValue ( object_id , out loc10 ) )
389389 indexColumns . Add ( object_id , loc10 = new Dictionary < string , DbIndexInfo > ( ) ) ;
390390 if ( ! loc10 . TryGetValue ( index_id , out loc11 ) )
391- loc10 . Add ( index_id , loc11 = new DbIndexInfo ( ) ) ;
391+ loc10 . Add ( index_id , loc11 = new DbIndexInfo { Name = index_id } ) ;
392392 loc11 . Columns . Add ( new DbIndexColumnInfo { Column = loc9 , IsDesc = is_desc } ) ;
393393 if ( is_unique && ! is_primary_key )
394394 {
395395 if ( ! uniqueColumns . TryGetValue ( object_id , out loc10 ) )
396396 uniqueColumns . Add ( object_id , loc10 = new Dictionary < string , DbIndexInfo > ( ) ) ;
397397 if ( ! loc10 . TryGetValue ( index_id , out loc11 ) )
398- loc10 . Add ( index_id , loc11 = new DbIndexInfo ( ) ) ;
398+ loc10 . Add ( index_id , loc11 = new DbIndexInfo { Name = index_id } ) ;
399399 loc11 . Columns . Add ( new DbIndexColumnInfo { Column = loc9 , IsDesc = is_desc } ) ;
400400 }
401401 }
You can’t perform that action at this time.
0 commit comments