EF 5 Enable-Migrations : No context type was found in the assembly

后端 未结 24 2092
野的像风
野的像风 2020-12-02 11:51

I have 4 projects :

Toombu.Entities : all models are there
Toombu.DataAccess: Mapping, Repository and ToombuContext
Toombu.Logique : Logic of my application         


        
24条回答
  •  无人及你
    2020-12-02 12:50

    If anyone is still facing this problem. I solved it by using the following command:

    Enable-Migrations -ProjectName  -ContextTypeName 
    

    Don't forget to use the full path to your context name.

提交回复
热议问题