Is base.OnModelCreating(modelBuilder) necessary?

entity-framework entity-framework-6

Question

I'm taking charge.OnModelCreating and the line is in the procedure.base.OnModelCreating(modelBuilder);

protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
    base.OnModelCreating(modelBuilder);
}

I'm not sure whether I need it after looking at the code examples and implementation guides. It appears and disappears intermittently. Occasionally at the start of the technique, and other times towards the finish.

How should I handle it?

1
12
9/19/2016 2:53:35 PM

Accepted Answer

ZZZ_tmp
9
8/20/2019 4:54:47 PM

Popular Answer

ZZZ_tmp


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow