ExpendoObject like entities
Posted: Sun 10 Jul 2016 10:47
Hi,
I’m trying linqConnect for my next product. It’s a wonderful as far as I can see. Especially in combination with dbMonitor.
Still (as of now) I’m missing something in department of flexibility. My current issue is “expendables” entities. Something like ExpendoObjects. My situation is – customer has sometimes 2 tables.First is core with fixed and known set of fields. No problem to make them into “core” entity. Take as example table “goods”. Then some customers become customer only required extensions : table “goods_ext”. They bound by “OneToOne” association. How I can provide extensions in main entity? At the end I want all filed’s from goods_ext in dictionary or in ExpendoObject-like form. All program modules that work with core functionality shouldn’t be aware of extensions. But customer-tailored modules (BL) should. I have strange feeling that I just can’t find this.
And before I start programming Factory for types and creating entities for every customer extension (don’t know if this will be solution without drawbacks) – I want ask here for hint.
Thank you in advance and thumbs up for great product!
WbR,
Andrew Zozulya
I’m trying linqConnect for my next product. It’s a wonderful as far as I can see. Especially in combination with dbMonitor.
Still (as of now) I’m missing something in department of flexibility. My current issue is “expendables” entities. Something like ExpendoObjects. My situation is – customer has sometimes 2 tables.First is core with fixed and known set of fields. No problem to make them into “core” entity. Take as example table “goods”. Then some customers become customer only required extensions : table “goods_ext”. They bound by “OneToOne” association. How I can provide extensions in main entity? At the end I want all filed’s from goods_ext in dictionary or in ExpendoObject-like form. All program modules that work with core functionality shouldn’t be aware of extensions. But customer-tailored modules (BL) should. I have strange feeling that I just can’t find this.
And before I start programming Factory for types and creating entities for every customer extension (don’t know if this will be solution without drawbacks) – I want ask here for hint.
Thank you in advance and thumbs up for great product!
WbR,
Andrew Zozulya