File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/BootstrapBlazor.Server/Data Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ public class Foo
109109 /// Generate Foo class, random data
110110 /// </summary>
111111 /// <returns>返回一个Foo类的List,Return a List of Foo class</returns>
112- public static List < Foo > GenerateFoo ( IStringLocalizer < Foo > localizer , int count = 80 ) => Enumerable . Range ( 1 , count ) . Select ( i => new Foo ( )
112+ public static List < Foo > GenerateFoo ( IStringLocalizer < Foo > localizer , int count = 80 ) => [ .. Enumerable . Range ( 1 , count ) . Select ( i => new Foo ( )
113113 {
114114 Id = i ,
115115 Name = localizer [ "Foo.Name" , $ "{ i : d4} "] ,
@@ -119,7 +119,7 @@ public class Foo
119119 Complete = Random . Shared . Next ( 1 , 100 ) > 50 ,
120120 Education = Random . Shared . Next ( 1 , 100 ) > 50 ? EnumEducation . Primary : EnumEducation . Middle ,
121121 ReadonlyColumn = Random . Shared . Next ( 10 , 50 )
122- } ) . ToList ( ) ;
122+ } ) ] ;
123123
124124 /// <summary>
125125 /// 生成 Foo 类 Hobbies 数据
You can’t perform that action at this time.
0 commit comments