P
Paul Aspinall
Hi
I wrote quite a few apps with .NET 1.0 and 1.1, which made use of a Data
Access Layer, and also used the Microsoft Application Blocks for Data Access
(v2).
In VS 2005, there is a huge improvement in 'visually' designing the data
access, and binding it to the controls on the form.
I have 'played around' with the SqlDataSource component, which allows very
quick, easy and simple access to a SQL DB.
However, I have a couple of considerations, which I would like to get
opinions on....
1). If I want to use a common ConnectionString (ie. just have it coded in
one place), how can I bind each of my controls to this connection?? (ie. I
don't want to change 100's of controls if my connection string changes).
2). I want to keep in mind the 'Enterprise' way of doing things, via a DAL
or Business Layer.
Does anyone have any good source (C#), which shows the implementation of a
Front end, DAL, and the component bindings. This can be using SQL commands,
or Stored procedures, but I would appreciate details of Updates / Inserts
etc, as well as simple selects (so that I can see the impact on Table
Adapters etc).
Thanks in advance
Paul
I wrote quite a few apps with .NET 1.0 and 1.1, which made use of a Data
Access Layer, and also used the Microsoft Application Blocks for Data Access
(v2).
In VS 2005, there is a huge improvement in 'visually' designing the data
access, and binding it to the controls on the form.
I have 'played around' with the SqlDataSource component, which allows very
quick, easy and simple access to a SQL DB.
However, I have a couple of considerations, which I would like to get
opinions on....
1). If I want to use a common ConnectionString (ie. just have it coded in
one place), how can I bind each of my controls to this connection?? (ie. I
don't want to change 100's of controls if my connection string changes).
2). I want to keep in mind the 'Enterprise' way of doing things, via a DAL
or Business Layer.
Does anyone have any good source (C#), which shows the implementation of a
Front end, DAL, and the component bindings. This can be using SQL commands,
or Stored procedures, but I would appreciate details of Updates / Inserts
etc, as well as simple selects (so that I can see the impact on Table
Adapters etc).
Thanks in advance
Paul