Skip to content

Instantly share code, notes, and snippets.

@abel-masila
Created December 21, 2016 10:16
Show Gist options
  • Save abel-masila/2c71ee2827a8e5a52af6e7e982f9c7be to your computer and use it in GitHub Desktop.
Save abel-masila/2c71ee2827a8e5a52af6e7e982f9c7be to your computer and use it in GitHub Desktop.
Db Context
using ProductsApp.Models;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;
namespace ProductsApp.Context
{
public class ProductContext:DbContext
{
public DbSet<Product> Products { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment