Q27.webp
I

Q27.webp

  • Media owner Ino20041
  • Ngày thêm
Kizspy | Question: 27
(Choose 1 answer)
Which code demonstrates creating a database using the Code First model in EF Core?
A. public class ApplicationDbContext: DbContext
{
public DbSet<Product> Products { get; set; }
protected override void OnConfiguring (DbContextOptionsBuilder options)
options. UseSqlServer("YourConnectionString");
B. public class DbContext
}
public DbSet<Product> Products { get; set; }
C. public DbContext Options Builder => new DbContext();
D. public class ApplicationDbContext
public DbSet<string> Products { get; set; }
}

Thông tin

Category
PRN212
Thêm bởi
Ino20041
Ngày thêm
Lượt xem
1,616
Lượt bình luận
4
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom