File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
src/Thinktecture.EntityFrameworkCore.Relational/Extensions Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -179,6 +179,23 @@ public static DbContextOptionsBuilder RemoveConvention(
179179 return builder ;
180180 }
181181
182+ /// <summary>
183+ /// Configures the string builder pool.
184+ /// </summary>
185+ /// <param name="builder">Options builder.</param>
186+ /// <param name="initialCapacity">Initial capacity of a new <see cref="StringBuilder"/>.</param>
187+ /// <param name="maximumRetainedCapacity">Instances of <see cref="StringBuilder"/> with greater capacity are not reused.</param>
188+ /// <returns>The provided <paramref name="builder"/>.</returns>
189+ public static DbContextOptionsBuilder < T > ConfigureStringBuilderPool < T > (
190+ this DbContextOptionsBuilder < T > builder ,
191+ int initialCapacity = 300 ,
192+ int maximumRetainedCapacity = 4096 )
193+ where T : DbContext
194+ {
195+ ( ( DbContextOptionsBuilder ) builder ) . ConfigureStringBuilderPool ( initialCapacity , maximumRetainedCapacity ) ;
196+ return builder ;
197+ }
198+
182199 /// <summary>
183200 /// Configures the string builder pool.
184201 /// </summary>
You can’t perform that action at this time.
0 commit comments