-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRegist.cs
More file actions
28 lines (21 loc) · 726 Bytes
/
Regist.cs
File metadata and controls
28 lines (21 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore;
namespace ConstHard;
public partial class Regist : DbContext
{
public Regist()
{
}
public Regist(DbContextOptions<Regist> options)
: base(options)
{
}
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
=> optionsBuilder.UseSqlServer("Data Source=(LocalDB)\\MSSQLLocalDB;AttachDbFilename=C:\\temp\\Register.mdf;Integrated Security=True;Connect Timeout=30");
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
OnModelCreatingPartial(modelBuilder);
}
partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
}