mirror of
https://github.com/rudollee/LearningMVC.git
synced 2025-06-07 16:06:21 +00:00
20 lines
448 B
C#
20 lines
448 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using SportsStore.Domain.Entities;
|
|
using System.Data.Entity;
|
|
|
|
namespace SportsStore.Domain.Concrete
|
|
{
|
|
public class EFDbContext : DbContext
|
|
{
|
|
public DbSet<Product> Products { get; set; }
|
|
|
|
protected override void OnModelCreating(DbModelBuilder modelBuilder)
|
|
{
|
|
Database.SetInitializer<EFDbContext>(null);
|
|
base.OnModelCreating(modelBuilder);
|
|
}
|
|
}
|
|
} |