SAB-E02/Blog.DAL/Infrastructure/BlogContext.cs
2021-04-06 18:04:43 +02:00

16 lines
310 B
C#

using System.Data.Entity;
using Blog.DAL.Model;
namespace Blog.DAL.Infrastructure
{
public class BlogContext : DbContext
{
public IDbSet<Post> Posts { get; set; }
public IDbSet<Comment> Comments { get; set; }
public BlogContext() : base("Blog")
{
}
}
}