What's an entity in entity framework? -
in tutorials im following learning entity framework, keep mentioning entities. see gets used synonym dbsets<>
in database context class, what's literal meaning of it?
i know how entity framework works, dont understand meaning of word.
in entity framework entity largely equivalent class in conceptual model (or class model, mapped store model).
in domain model terms entity is
an object not defined attributes, rather thread of continuity , identity.
(source: wikipedia)
that quite mouthful "an object identity", opposed value object, datetime
or (maybe) address
. customer
entity, because identified "who" is. 2 customers same name still 2 customers.
so entities can loosely defined "things" business domain about. things both customer/user , system designer/developer talk in ubiquitous language. , in ef things represented classes.
so it's not dbset
. dbset
repository provides entity objects.
i see people referring entities models. don't know origin of terminology (it seems happen coincidence), don't think it's correct. it's confusing. model in ef either store model or conceptual model, it's collection of entities. model can view model comprises number of attributes of number of entities.
Comments
Post a Comment