Set database collation in Entity Framework Code-First Initializer

后端 未结 8 1309
后悔当初
后悔当初 2020-12-01 12:26

I want to set the default collation for a database, when Entity Framework Code First creates it.

I\'ve tried the following:

public class TestInitiali         


        
8条回答
  •  再見小時候
    2020-12-01 13:14

    EF 5 now supports creating missing tables in an existing database with Code First, so you can create an empty database and set the collation correct, before running an CF on it.

提交回复
热议问题