When using .nettiers I have found a problem of generation when changing column type.
The only way to resolve this problem on my point of view was to select another name for that column.
This change will be a huge problem as sometimes this column is used in stored procedures, functions or buisness layer.
One day I decided to spend a time looking for a solution for this problem.
I tried to change column name and rebuild then change it back, generate and rebuild, but the problem was still existing !!
How it knows the old name ?!!
From the above question I was sure that there is a place that caches it and finally I got it.
Using code smith generation tool that is used for generation there is a mapping file.
When I changing the mapping to a new file map ,then regenerate. The problem solved !!
This mapping file is a config XML file that has all tables definitions and that was the problem :)
Actually I am very happy for resolving this problem and saving a lot of time of chaning column name.
Hope it helps all of you and happy coding ;)
No comments:
Post a Comment