@@ -149,6 +149,24 @@ 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+
152170 /// <summary>
153171 /// Configures the charset for the property's column.
154172 /// </summary>
@@ -160,6 +178,17 @@ public static PropertyBuilder<TProperty> HasCharSet<TProperty>(
160178 string charSet )
161179 => ( PropertyBuilder < TProperty > ) HasCharSet ( ( PropertyBuilder ) propertyBuilder , charSet ) ;
162180
181+ /// <summary>
182+ /// Configures the charset for the property's column.
183+ /// </summary>
184+ /// <param name="propertyBuilder">The builder for the property being configured.</param>
185+ /// <param name="charSet">The name of the charset to configure for the property's column.</param>
186+ /// <returns>The same builder instance so that multiple calls can be chained.</returns>
187+ public static ComplexPropertyBuilder < TProperty > HasCharSet < TProperty > (
188+ [ NotNull ] this ComplexPropertyBuilder < TProperty > propertyBuilder ,
189+ string charSet )
190+ => ( ComplexPropertyBuilder < TProperty > ) HasCharSet ( ( ComplexPropertyBuilder ) propertyBuilder , charSet ) ;
191+
163192 /// <summary>
164193 /// Configures the charset for the property's column.
165194 /// </summary>
0 commit comments