M
Magnus Karlsson
Hi!
Our project is a multi-layer-application with a
presentation layer, a business layer and a data access
layer. We have developed two data access layers, one for
Access and one for SQL. Both those data layers use the
same namespace OurCompany.OurProductName.DAL. The
customer will only use one of these DAL:s.
1) Both the OLEDB and the SQL-version of the DAL
exists in our solution (same namespace as described
above). This will make these two projects to collide
because it uses the same namespace. Is there any way
to "disable" one project in the solution and let .NET use
the DAL chosen in the references section?
2) The second problem is more complex. Our business
layer has of course a reference to one of the DAL:s. The
only difference between the OLEDB-version and the SQL-
version is the referenced version of the DAL. We would
like to dynamically set, at run-time-state, the reference
to one of the DAL:s and by this way avoid to develop two
versions of the business layer or implement code that
chooses a namespace of our choice. Is this even possible?
Best regards
Magnus
Our project is a multi-layer-application with a
presentation layer, a business layer and a data access
layer. We have developed two data access layers, one for
Access and one for SQL. Both those data layers use the
same namespace OurCompany.OurProductName.DAL. The
customer will only use one of these DAL:s.
1) Both the OLEDB and the SQL-version of the DAL
exists in our solution (same namespace as described
above). This will make these two projects to collide
because it uses the same namespace. Is there any way
to "disable" one project in the solution and let .NET use
the DAL chosen in the references section?
2) The second problem is more complex. Our business
layer has of course a reference to one of the DAL:s. The
only difference between the OLEDB-version and the SQL-
version is the referenced version of the DAL. We would
like to dynamically set, at run-time-state, the reference
to one of the DAL:s and by this way avoid to develop two
versions of the business layer or implement code that
chooses a namespace of our choice. Is this even possible?
Best regards
Magnus