---
title: "Discussion on \"EntityType: EntitySet ‘[Entity Name]’ is based on type ‘[Entity Name]’ that has no keys defined\" | Hashnode"
description: "Discussion on \"EntityType: EntitySet ‘[Entity Name]’ is based on type ‘[Entity Name]’ that has no keys defined\". So, the exception completely indicates to us that it is not able to find a Key in the model, which is defined in the database for that entity.\nProblem\nWhen you design a model class for the entity, you define many properties including keys, if any. Bu..."
url: "https://hashnode.com/posts/entitytype-entityset-entity-name-is-based-on-type-entity-name-that-has-no-keys-defined/64ac20fe3070b2be16c448f8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [EntityType: EntitySet ‘\[Entity Name\]’ is based on type ‘\[Entity Name\]’ that has no keys defined](https://blog.taditdash.com/entitytype-entityset-entity-name-is-based-on-type-entity-name-that-has-no-keys-defined?utm_source=hashnode&utm_medium=feed)

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

Nov 9, 2015 · 2 min read · blog.taditdash.com  
Read the article

-   [#aspnet-mvc](https://hashnode.com/tag/aspnet-mvc)
-   [#mvc](https://hashnode.com/tag/mvc)
-   [#primary-key](https://hashnode.com/tag/primary-key)
-   [#entity-framework](https://hashnode.com/tag/entity-framework)
-   [#systemdataentityedmedmentityset](https://hashnode.com/tag/systemdataentityedmedmentityset)

## Written by

[Tadit Dash](https://hashnode.com/@taditdash)

@taditdash · India

  
[View profile](https://hashnode.com/@taditdash)

🚀 Vice President | Author of Tech Solutions 📚 | Inspiring TEDx Speaker 🎤 | Former Microsoft MVP 🏅 | Expert in .NET, Angular, and Vue.js

As a 🚀 Vice President with over 12 years of experience, I am a seasoned software architect known for designing and leading teams of engineers to deliver high-quality software products promptly and within budget. Throughout my career, I have spearheaded the end-to-end design of 7 innovative software products 🎯. From conceptualization to deployment planning, I have successfully guided teams through requirements gathering, prototyping, testing, and deployment phases, ensuring exceptional outcomes. I take pride in my industry recognition, including being honored as a 💎 Microsoft Most Valuable Professional, 💡 CodeProject Most Valuable Professional, and 🏆 DZone Most Valuable Blogger. Additionally, my expertise has been acknowledged by BookAuthority, which recognized my books on ASP.NET, REST API, Vue.js, and Dependency Injection as the 📚 best of all time. In addition to my professional achievements, I am passionate about mentorship and have been privileged to serve as a 🌟 Young Mentor at IndiaMentor, guiding aspiring professionals in their career journeys. For further information about my work and insights, please visit my website at 🌐 http://taditdash.com. You can also connect with me on 🐦 Twitter at https://twitter.com/taditdash, 👍 Facebook at https://www.facebook.com/taditdash, and 💼 LinkedIn at https://www.linkedin.com/in/taditdash. I am always open to networking and discussing opportunities, so feel free to reach out and connect. Let's explore how we can collaborate and drive innovation in the ever-evolving world of software architecture and development.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
