Code First Migrations With Existing Table

后端 未结 1 489
不思量自难忘°
不思量自难忘° 2020-12-31 12:11

In my model I have navigation property Language:

public class IntegratorDescription : BaseContract
{
    [Key, Column(TypeName = \"bigint\"), DataMember]
            


        
1条回答
  •  余生分开走
    2020-12-31 12:52

    -IGNORECHANGES

    Scaffolds an empty migration ignoring any pending changes detected in the current model. This can be used to create an initial, empty migration to enable Migrations for an existing database. N.B. Doing this assumes that the target database schema is compatible with the current model.

    http://coding.abel.nu/2012/03/ef-migrations-command-reference/

    0 讨论(0)
提交回复
热议问题