31 lines
931 B
C#
31 lines
931 B
C#
|
//------------------------------------------------------------------------------
|
|||
|
// <auto-generated>
|
|||
|
// This code was generated from a template.
|
|||
|
//
|
|||
|
// Manual changes to this file may cause unexpected behavior in your application.
|
|||
|
// Manual changes to this file will be overwritten if the code is regenerated.
|
|||
|
// </auto-generated>
|
|||
|
//------------------------------------------------------------------------------
|
|||
|
|
|||
|
namespace SportsStore.WebUI
|
|||
|
{
|
|||
|
using System;
|
|||
|
using System.Data.Entity;
|
|||
|
using System.Data.Entity.Infrastructure;
|
|||
|
|
|||
|
public partial class EFDbContext : DbContext
|
|||
|
{
|
|||
|
public EFDbContext()
|
|||
|
: base("name=EFDbContext")
|
|||
|
{
|
|||
|
}
|
|||
|
|
|||
|
protected override void OnModelCreating(DbModelBuilder modelBuilder)
|
|||
|
{
|
|||
|
throw new UnintentionalCodeFirstException();
|
|||
|
}
|
|||
|
|
|||
|
public virtual DbSet<Product> Products { get; set; }
|
|||
|
}
|
|||
|
}
|