If I have an object, say a custom class, say the First and Last Name properties, then the best way to populate it:
or
I would go for the first. I think it is cleaner, and so your custom class can stand on its own, even if the business layer changes.
, MVC.
, . - , ? ?
, , DAO/DTO. № 1 (DTO), . № 2 (DAO) - , , .
, , - №3, -, -, . , , ( , -).
, , , .
. .
factory abstract factory, - , . :
- , , . , . , , firstname lastname , , save().
-, , . -, , . , - / .
-, reloadData(). -, - .
, . , . .
How about if the object has a .Save () method that calls the Business.Save () method?
Perhaps this stirs him too much.
Source: https://habr.com/ru/post/1710793/More articles:AquaticPrime "Regular" license? - cocoaRecommendations for Ubuntu + Rails Fast Server - ruby-on-railsDos-based printing using C # .net - c #Get the following auto-increment value for a data column? - .netAS3: How accurate are the getTimer () methods and the Timer class? - flexLocalization of ArgumentException.Message in .NET. - c #Capturing rel and href type links in C # - c #Static class members in a shared library - c ++Получение значения атрибутов href во всех тегахв html файле с помощью Python - pythonGridLines not showing in GridView with CSS reset? - cssAll Articles