-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNeondbContext.cs
More file actions
35 lines (25 loc) · 1.01 KB
/
NeondbContext.cs
File metadata and controls
35 lines (25 loc) · 1.01 KB
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
29
30
31
32
33
34
35
using System;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore;
namespace ValuationBackend;
public partial class NeondbContext : DbContext
{
public NeondbContext(DbContextOptions<NeondbContext> options)
: base(options)
{
}
public virtual DbSet<PastValuationsLa> PastValuationsLas { get; set; }
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<PastValuationsLa>(entity =>
{
entity.HasKey(e => e.Id).HasName("PK_PastValuationsLA_temp");
entity.ToTable("PastValuationsLA");
entity.HasIndex(e => e.MasterFileId, "IX_PastValuationsLA_MasterFileId");
entity.HasIndex(e => e.ReportId, "IX_PastValuationsLA_ReportId");
entity.Property(e => e.FileNoGndivision).HasColumnName("FileNoGNDivision");
});
OnModelCreatingPartial(modelBuilder);
}
partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
}