Eric Evans in a multiple viewing video says: "I came to the conclusion that an entity should not even compare equality."
Will this mean that the object should not have the required Id field (as its infrastructure is concerned). When is entity matching required? As he mentions, in most cases this may not be necessary.
[Edit] When I mentioned that it doesn’t require Id, it was wrt to create an ie object, I can only check my logic with a new object (order = new Order) without passing a Guid or Id. There would be an identifier for saving, ideally generated by db.
, Entity ID; , , Entity .
. (Presentation, Application Infrastructure), Entity, . Entity Entities.
. , , Entity, .
UPDATE: , , , ( ), , , - , ? , - -, . , .
, , - , / , . , , .
/ / - , , , ?
"", , , /, , , . , / ? , . "-", , / .
, , mot , , . Id , .
Id
Source: https://habr.com/ru/post/1692562/More articles:Android - protection when purchasing applications with server-side verification - androidHow to calculate total TSR block size from multiple .asm files? - assemblyUsing Implicit Class Type Parameters in Coq Notation - syntaxWhy does insert (Unix) automatically add a new line? - unixHow to remove list item from dict value? - pythonWhy jQuery dialog doesn't work in XPages - javascriptXPages getComponent () not working correctly - javascriptGet dynamic key values from JSON string - jsonJava - What is the data type for physical computing? - javased regex - convert Case to camelCase header - regexAll Articles