PropertyBuilder.IsUnicode(Boolean) Method

Definition

Configures whether the property as capable of persisting unicode characters. Can only be set on String properties.

C#
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder IsUnicode (bool unicode = true);

Parameters

unicode
Boolean

A value indicating whether the property can contain unicode characters.

Returns

The same builder instance so that multiple configuration calls can be chained.

Applies to

Product Versions
Entity Framework Core 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0