BHoM / BHoM_Adapter

GNU Lesser General Public License v3.0
7 stars 5 forks source link

BHoM_Adapter: refactoring - CRUD vs AdapterActions type consistency #159

Closed alelom closed 3 years ago

alelom commented 4 years ago

Current state

CRUD methods:

AdapterActions:

Proposed

CRUD methods were designed in order for the CRUD() (formerly Replace()) method to work. Since the CRUD() works only with IBHoMObjects, then we should be consistent in imposing IBHoMObject for all CRUD methods.

There is not a single use case where we Create IObjects. We should clarify this as well in the definition of IObject itself: they are not meant to be Created or Read. [..ELABORATE ON THIS] We don't enforce IBHoMObject in all CRUD methods, but in effect is like we did, as all of them require IBHoMObject in order to work as intended.

I really want to generalise more:

alelom commented 3 years ago

Done in Adapter refactoring.