I am using azure Elastic database pattern with Entity Framework Code First.
When I create a new Shard Database the follow exception is thrown when I try to create the PointShard
map
// Register the mapping of the tenant to the shard in the shard map.
// After this step, DDR on the shard map can be used
PointMapping<Guid> mapping;
if (!ShardMap.TryGetMappingForKey(key, out mapping))
{
ShardMap.CreatePointMapping(key, shard);
}
Could not find stored procedure '__ShardManagement.spBulkOperationShardMappingsLocal'
The EF schema is being created but the sharding schema and stored procs are not being generated.
How can I ensure that the sharding components of my DbContext
are generated?