Error While Enabling Code-First Migrations On Mobile Services Database

前端 未结 5 1666
你的背包
你的背包 2021-02-07 17:12

I have an Azure Mobile Services project (C# backend) that I recently created and attached to an Azure SQL database. I have been trying to enable Code-First Migrations on that ba

5条回答
  •  你的背包
    2021-02-07 18:03

    See this article:

    avoid nightmares using ef first migration in azure mobile services

    EntityData define a cluster indext to CreateAt and Id is by default a cluster index, this way it provide an error and you should define only one.

提交回复
热议问题