@@ -149,6 +149,42 @@ public static PropertyBuilder HasCharSet(
149149 return propertyBuilder ;
150150 }
151151
152+ /// <summary>
153+ /// Configures the charset for the property's column.
154+ /// </summary>
155+ /// <param name="propertyBuilder">The builder for the property being configured.</param>
156+ /// <param name="charSet">The name of the charset to configure for the property's column.</param>
157+ /// <returns>The same builder instance so that multiple calls can be chained.</returns>
158+ public static ComplexPropertyBuilder HasCharSet (
159+ [ NotNull ] this ComplexPropertyBuilder propertyBuilder ,
160+ string charSet )
161+ {
162+ Check . NotNull ( propertyBuilder , nameof ( propertyBuilder ) ) ;
163+
164+ var property = propertyBuilder . Metadata ;
165+ property . SetCharSet ( charSet ) ;
166+
167+ return propertyBuilder ;
168+ }
169+
170+ /// <summary>
171+ /// Configures the charset for the property's column.
172+ /// </summary>
173+ /// <param name="propertyBuilder">The builder for the property being configured.</param>
174+ /// <param name="charSet">The name of the charset to configure for the property's column.</param>
175+ /// <returns>The same builder instance so that multiple calls can be chained.</returns>
176+ public static ComplexTypePropertyBuilder HasCharSet (
177+ [ NotNull ] this ComplexTypePropertyBuilder propertyBuilder ,
178+ string charSet )
179+ {
180+ Check . NotNull ( propertyBuilder , nameof ( propertyBuilder ) ) ;
181+
182+ var property = propertyBuilder . Metadata ;
183+ property . SetCharSet ( charSet ) ;
184+
185+ return propertyBuilder ;
186+ }
187+
152188 /// <summary>
153189 /// Configures the charset for the property's column.
154190 /// </summary>
@@ -160,6 +196,28 @@ public static PropertyBuilder<TProperty> HasCharSet<TProperty>(
160196 string charSet )
161197 => ( PropertyBuilder < TProperty > ) HasCharSet ( ( PropertyBuilder ) propertyBuilder , charSet ) ;
162198
199+ /// <summary>
200+ /// Configures the charset for the property's column.
201+ /// </summary>
202+ /// <param name="propertyBuilder">The builder for the property being configured.</param>
203+ /// <param name="charSet">The name of the charset to configure for the property's column.</param>
204+ /// <returns>The same builder instance so that multiple calls can be chained.</returns>
205+ public static ComplexPropertyBuilder < TProperty > HasCharSet < TProperty > (
206+ [ NotNull ] this ComplexPropertyBuilder < TProperty > propertyBuilder ,
207+ string charSet )
208+ => ( ComplexPropertyBuilder < TProperty > ) HasCharSet ( ( ComplexPropertyBuilder ) propertyBuilder , charSet ) ;
209+
210+ /// <summary>
211+ /// Configures the charset for the property's column.
212+ /// </summary>
213+ /// <param name="propertyBuilder">The builder for the property being configured.</param>
214+ /// <param name="charSet">The name of the charset to configure for the property's column.</param>
215+ /// <returns>The same builder instance so that multiple calls can be chained.</returns>
216+ public static ComplexTypePropertyBuilder < TProperty > HasCharSet < TProperty > (
217+ [ NotNull ] this ComplexTypePropertyBuilder < TProperty > propertyBuilder ,
218+ string charSet )
219+ => ( ComplexTypePropertyBuilder < TProperty > ) HasCharSet ( ( ComplexTypePropertyBuilder ) propertyBuilder , charSet ) ;
220+
163221 /// <summary>
164222 /// Configures the charset for the property's column.
165223 /// </summary>
0 commit comments