@@ -149,6 +149,42 @@ public static PropertyBuilder HasCharSet(
149
149
return propertyBuilder ;
150
150
}
151
151
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
+
152
188
/// <summary>
153
189
/// Configures the charset for the property's column.
154
190
/// </summary>
@@ -160,6 +196,28 @@ public static PropertyBuilder<TProperty> HasCharSet<TProperty>(
160
196
string charSet )
161
197
=> ( PropertyBuilder < TProperty > ) HasCharSet ( ( PropertyBuilder ) propertyBuilder , charSet ) ;
162
198
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
+
163
221
/// <summary>
164
222
/// Configures the charset for the property's column.
165
223
/// </summary>
0 commit comments