Class MySQLCollationAttribute
Sets the collation in an entity property.
Inheritance
System.Object
System.Attribute
MySQLCollationAttribute
Namespace: MySql.EntityFrameworkCore.DataAnnotations
Assembly: MySql.EntityFrameworkCore.dll
Version: 9.3.0
Syntax
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field)]
public class MySQLCollationAttribute : Attribute
Constructors
MySQLCollationAttribute(String)
Initializes a new instance of the My
Declaration
public MySQLCollationAttribute(string collation)
Parameters
Type | Name | Description |
---|---|---|
System. |
collation | Collation to use. |
Properties
Collation
Collation set in the attribute.
Declaration
public string Collation { get; }
Property Value
Type | Description |
---|---|
System. |