Hi,
I know that the rule is that you should never change an interface once implemented. But if I create an object that is inserting data into a database and the user is passing me the values and the underlying table changes down the line, where now the user will have to pass me more values and I'll will have to receive more to do the insert, wouldn't that require an adjustment to the interface or do I just create a new interface and reference it in the class?
I'm trying to place all of my DB calls in a DLL and remove it from my application but I'm not sure if that's the best way to go.
Should I have the user only pass me the values for the insert or the Insert SQL statment itself?
Any direction here would be greatly appreciated.
- VB Rookie
I know that the rule is that you should never change an interface once implemented. But if I create an object that is inserting data into a database and the user is passing me the values and the underlying table changes down the line, where now the user will have to pass me more values and I'll will have to receive more to do the insert, wouldn't that require an adjustment to the interface or do I just create a new interface and reference it in the class?
I'm trying to place all of my DB calls in a DLL and remove it from my application but I'm not sure if that's the best way to go.
Should I have the user only pass me the values for the insert or the Insert SQL statment itself?
Any direction here would be greatly appreciated.
- VB Rookie