Câu 20: 70-487: MCSD Developing Windows Azure and Web Services
You are developing an ASP. NET Core web application by using an Entity Framework code-first approach. The application uses an Azure SQL Database. The code-first migration is configured to run as part of a continuous integration build. You must add an Azure MySQL Database. This database must use the same schema as the…
Nội dung câu hỏi
You are developing an ASP. NET Core web application by using an Entity Framework code-first approach. The application uses an Azure SQL Database. The code-first migration is configured to run as part of a continuous integration build. You must add an Azure MySQL Database. This database must use the same schema as the existing Azure SQL Database instance. You need to configure the migration to ensure that the existing TFS build definition remains unchanged. What are two possible ways to achieve this goal? Each correct answer presents a complete solution. Each correct selection is worth one point.NOTE:
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. Use the ActiveProvider property to specify the provider to which the migration is applied.
- B. Create a new type that derives from DbContext and override the ActiveProvider object. Then, add or apply migrations using this type. — đáp án hiện tại
- C. Use the Entity Framework Core Fluent API to identify database providers. — đáp án hiện tại
- D. Create a separate Migration Assembly than the one containing the DbContext and switch the active provider during build.
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.