Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Tag.cs | Stack Overflow | How do I use OnModelCreating with ApplicationDbContext?
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Linq;
using System.Web;
namespace BlogEngine.Models
public class Tag : IEntity
public int Id { get; set; }
public string Name { get; set; }
public int? Posts_Id { get; set; }
public virtual List<Post> Posts { get; set; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment