BHoM / BHoM_Adapter

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

BHoM_Adapter: all CRUD methods to work only with `IBHoMObject`s #139

Closed alelom closed 3 years ago

alelom commented 4 years ago

Essentially for consistency of use.

We need to clearly separate the methods that are useful for the full CRUD() (formerly Replace()): they need to accept only IBHoMObject -- as without the essential properties of a BHoMObject, namely tag, the full CRUD simply cannot work.

Flexibility to work with different types will then be left to the Push override: just override the Pull and make it call whatever method suits you for creating non-BHoMObjects.

alelom commented 3 years ago

Done.