So I'm making a business data layer in my app so I obviously need API for accessing my data.
How do I evade choosing between:
Implementing ICreatable, IReadable, IUpdatable, IDeletable which are practically identical for each class which makes me write the same code a lot
Extending an existing generic data class which has all 4 CRUD which I do not like since I want some data to be read only
What I'd really like is multiple inheritance so that I can simply extend with Creatable, Removable, Updatable or Removable abstract classes when I need em
I was thinking about making abstract CRUDable and Readable classes which seems to be the least amount of repetitive coding while avoiding multiple inheritance and maintenance issues