"sloan" <(E-Mail Removed)> wrote in
news:#(E-Mail Removed):
>
> I would totally abandon the "drag and drop" approach...aka, the
> "RAPID" approach.
I use the RAPID approach and then scrap the bindings. It helps me build
a form rather quickly, but I then ignore the behind the scenes stuff. I
think of it as throwing out the bathwater and keeping the baby. ;-)
> You can find an example of using the DAAB 2.0 at:
> http://sholliday.spaces.live.com/Blog/cns!A68482B9628A842A!139.entry
>
> I have an updated version using the EnterpriseLibrary.Data at:
> http://sholliday.spaces.live.com/Blog/cns!A68482B9628A842A!140.entry
>
> However, the second one doesn't have datasets in it. The first one
> uses the .LoadDataSet method to populate strong datasets via stored
> procedures.
In general, I would scrap DAAB 2.0, as it is not the latest suggested
approach to data access. The new EntLib is not bad, although I am more
fond of using a Repository approach for data access. When the RIA bits
are released (realizing that RIA means Rich Internet Application and is
not "designed" for windows apps officially - it does work), you should
see some Repository samples. The ASP.NET MVC stuff from Phil Haack has
some bits you can adopt to windows apps that are rather nice.
In the end, DataSets, EF and/or objects are not huge changes, if your
code is properly tiered. You do have to alter the binding a bit, of
course, and you completely change some data access bits, but models are
models ultimately. Once again, design of the app is the key for
switching out bits.
In summary, I see nothing wrong with dragging, creating a form, and then
gutting out what you are not going to use and switching to a more
"sane" data access paradigm. It saves a lot of time doing the rote
"design" work and the baggage is easy enough to kill.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
Twitter: @gbworld
Blog:
http://gregorybeamer.spaces.live.com
*******************************************
| Think outside the box! |
*******************************************