Search Results for

    Show / Hide Table of Contents

    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 MySQLCollationAttribute class.

    Declaration
    public MySQLCollationAttribute(string collation)
    Parameters
    Type Name Description
    System.String collation

    Collation to use.

    Properties

    Collation

    Collation set in the attribute.

    Declaration
    public string Collation { get; }
    Property Value
    Type Description
    System.String
    In This Article
    • Constructors
      • MySQLCollationAttribute(String)
    • Properties
      • Collation
    Back to top Copyright © 2021, 2025, Oracle and/or its affiliates.