Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Microsoft.EntityFrameworkCore;
- namespace TestProject
- {
- public class PersonContext : DbContext
- {
- DbSet<Person> Persons { get; set; }
- protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
- {
- optionsBuilder.UseSqlServer("Server=localhost,1401; Database=PersonDb1;User=SA; Password=1StrongPassword!");
- }
- }
- }
Add Comment
Please, Sign In to add comment