Some time ago, I decided to split my application in separate "code" and a "data" files. Now I want to add a calculated field in one of the tables, this calculation aggregates values in a related table. If I am correct this has to be done in the "data" file.
I realised that I had added that relation in my "code" file and that I had to add it also in the "data" file.
Is it correct that I need the relationship graph in both files? Isn't it a risk to have (almost impossible to find ) bugs if there are differences in the two graphs? Are there any ways to insure consistency between the two graph?