entity framework - Is it possible for EF6 migration up command to delete database with these commands? -


Either way, leaving my C # code or organization frame 6 and creating a database when I run < / P>

  PM & gt; With a clear migration with () method that looks like this ...  
  public override zeros () {update} -  

AddColumn ("dbo.Term", "Term_Id", c = & gt; c.Int ()); Createindex ("dbo.Term", "Term_ID"); AddForeignKey ("dbo.Term", "Term_Id", "dbo.Term", "ID"); }

-babus generates this ...

  original: configuration). Apply explicit migration: [201410271927053_addTermsTable2] Apply explicit migration: 201410271927053_addTermsTable2Additional terms [DBO]. [Duration] ADD [Term_Id] [ININ] CREATE INDEX [IX_Term_Id] ON [dbo]. [Period] ([Term_Id]) optional table [dbo]. [Period] ADD CONSTRAINT [FK_dbo.Term_dbo. [MRI] [[Migration IID], [referencing], [model], [product]]  

(Also included in the migration statement)

None of these indicates that I (DB) will be removed.

Can someone confirm this not drop?

Is it that

  is this a blue SQL database? That column was added in response to this linking .. in the classroom? Public virtual iconging & lt; Period & gt; URL {Get; Set; 

Thanks


Comments