diff --git a/src/Microsoft.Restier.Providers.EntityFramework/Model/ModelProducer.cs b/src/Microsoft.Restier.Providers.EntityFramework/Model/ModelProducer.cs index 8f03deb6..7be8d609 100644 --- a/src/Microsoft.Restier.Providers.EntityFramework/Model/ModelProducer.cs +++ b/src/Microsoft.Restier.Providers.EntityFramework/Model/ModelProducer.cs @@ -69,7 +69,7 @@ public Task GetModelAsync(ModelContext context, CancellationToken can if (efEntityContainers.Count > 1) { var containerNames = efEntityContainers.Aggregate("", (current, next) => next.Name + ", "); - throw new Exception("This project has multiple EntityFrameworkApis using different DbContexts, and the correct contect could not be loaded. \r\n" + + throw new Exception("This project has multiple EntityFrameworkApis using different DbContexts, and the correct context could not be loaded. \r\n" + $"The contexts available are '{containerNames.Substring(0, containerNames.Length - 2)}' but the Container expects '{efEntityContainer.Name}'."); } throw new Exception("Could not find the correct DbContext instance for this EntityFrameworkApi. \r\n" +