>ASP.NET Boilerplate provides <strong>Entity</strong> class that defines <strong>Id</strong> poperty. I derived entities from this Entity class. Task class has an Id of type <strong>long</strong> since I derived from Entity&lt;long&gt;. Person class has an Id of type <strong>int</strong>. Since int is the default primary key type, I did not specified it.</p>

<p>I defined entities in the <strong>Core</strong> project since Entities are parts of domain/business layer.</p>

<h2 id="ArticleDbContext">Create Db