Search


Friday, April 4, 2008

Advantages LinQ (ADO.NET)

Assume you have deployed the framework 2.0 code into production along with the database, which has the column names as specified in the select query. Later, the database administrator (DBA) decides to change the column names in all the tables to implement new database policies: he modifies the employees table and changes the firstname column to EmployeeFirstName and the lastname column to EmployeeLastName. After these database changes are made, the only way to prevent the application from breaking is by modifying all the code segments in source code that refers to the firstname and lastname columns, rebuild, retest, and deploy the whole application again. Though on the surface it seems not so difficult to make such changes, if you factor in the possibility that there might be many database-related code segments that require modification of the column names according to the new column naming scheme, this can end up being a tedious and difficult approach to upgrade an application so it can work with the modified database.

No comments:

Post a Comment