Post Profile

Defining a class with Foreign Key in EF CodeFirst

Explaining how to define an Foriegn Key for Property of a Class in Entity Framework code first approach
read more


Related Posts

A Gentle Introduction to Entity Framework 6 from an NHibernate Perspective

Programming / Windows Development : CodeProject

If you have been using Hibernate/NHibernate for a while before the introduction of its fluent API, you are used to a certain workflow. You define your entity classes. Then you create a hibernate configuration file that defines mappi...

Getting started with ASP.Net Web API 2 using CodeFirst

Programming / Windows Development : CodeProject

A basic tutorial to build and consume RESTful services using ASP.Net Web API 2 and Entity Framework Code First approach.

Entity Framework Code First using Database Project

Programming / Windows Development : CodeProject

This article explains how to create database project to existing solution explorer and how to import the existing database that is already created by using Entity Framework code first approach. It also explains how to update the dat...

EntityType: EntitySet ‘[Entity Name]’ is based on type ‘[Entity Name]’ that has no keys defined

Programming / Windows Development : CodeProject

So, the exception completely indicates us that it is not able to find a Key in model, which is defined in database for that entity. Problem When you design a model class for the entity, you define many properties including keys, if ...

Define an Unique Key for a property of a class

Programming / Windows Development : CodeProject

Explaining how to define an Unique Key for Property of a Class in Entity Framework code first approach


Copyright © 2016 Regator, LLC