Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

(C#) What is an entity?

Tags:

c#

entity

I try to read C# ECMA to find out what an entity is but failed. Is this a instance of class? Or types+members? Or any single word in the code that shows no red wavy line under it?

like image 530
DaveG Avatar asked Jan 03 '18 09:01

DaveG


1 Answers

Entity is a semantic i.e. relating to meaning in language or logic. An entity is something that exists in itself, actually or potentially, concretely or abstractly, physically or not. It needs not be of material existence.

enter image description here

An entity usually refers to something, anything really, that has a unique and separate existence. In software development this word is almost only used to denote that one instance is different from another instance and they are independent of each other.

A class, on the other hand, defines or contains the definition of an object. Once that object is constructed based on the definition, then you get your instance or object instance.

Hope it helps ;)

like image 122
praguan Avatar answered Oct 15 '22 04:10

praguan