orientechnologies / OrientDB.Net

OrientDB .Net Core core modules solution.
4 stars 7 forks source link

Create a base interface for OrientDBEntity and use it in IOrientDBRecordSerializer #18

Open weizensnake opened 6 years ago

weizensnake commented 6 years ago

It is problematic that the API is centered around the base class OrientDBEntity. Every class that wants to be (de)serializable into OrientDB would have to inherit from it which makes things awkward if that class also needs to inherit from other classes. We really should isolate the contract of OrientDBEntity into an interface. We can keep OrientDBEntity around as a convenient base implementation.