Database connection string and collation

前端 未结 2 432
心在旅途
心在旅途 2021-01-15 15:45

Is it possible to set connection collation within MySql connection string and how, since there\'s a default setting on the server that\'s used for new connections.

T

2条回答
  •  一个人的身影
    2021-01-15 16:34

    We recommend you to implement the OnContextCreated partial method.
    You have access to the store connection in it and you can execute ADO.NET command "SET COLLATION = ..." using this connection.

提交回复
热议问题