vb.net - How to manage multiple tables with the same structure (redux) -
i found question, similar problem solve:
how manage multiple tables same structure
however, due craptastical nature of vb, solution doesn't work. doesn't work because vb.net requires implementation of each method/property in interface explicitly declared.
as problem i'm trying solve, here is:
- i have many lookup/domain tables in database have same structure
- the items in these tables typically used drop downs in interface
- i avoid bunch of boilerplate repository methods retrieve contents of these tables (one method per table sucks when have 40 tables)
- i not using 1 true lookup table anti-pattern , not option
does have solution work work in vb?
generic repository should work in case. there many available online or can write simpler 1 lookup tables.
Comments
Post a Comment