ObjectContext

public class MyObjectContext : ObjectContext
{
	// It uses "ObjectSet" instead of "DbSet":
	public ObjectSet<Clan> Clans { get; set; }
	public ObjectSet<NinjaEquipment> NinjaEquipments { get; set; }
	public ObjectSet<Ninja> Ninjas { get; set; }

	public MyObjectContext() : base("name=MyObjectContext")
	{
		Clans = CreateObjectSet<Clan>();
		NinjaEquipments = CreateObjectSet<NinjaEquipment>();
		Ninjas = CreateObjectSet<Ninja>();
	}

	// It doesn't use "OnModelCreating".
}

DbContext

DBSet

DBEntityEntry

**`DBEntityEntry studentEntry = dbcontext.Entry(StudentEntity);`**

DbContext Lifetime