🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.database.dotnet
1 messages
1 total messages Started by xdyang Mon, 07 Jul 2008 16:41
Centralized data in .NET?
#49
Author: xdyang
Date: Mon, 07 Jul 2008 16:41
113 lines
5214 bytes
this is kind of irrelevant to this board, but somebody asked this
question before,
how to implement the delphi datamodule in Visual Studio.net?

http://www.daniweb.com/forums/thread82059.html

Question Centralized data in .NET?
  #1
Jun 27th, 2007
I've used Delphi for the past 12 years, but now I need to get up to
speed in C#. Since both systems were designed by the same person,
there are lots of similarities. However, C# seems to have a big gap
when it comes to centralized data access. All of the examples I've
seen show the connections, commands and datasets and so forth all
being placed on individual forms with no interconnection.

The applications I work with have numerous primary and support tables
with related queries and so on. If I have to redelcare these in every
form where they are used, the code overhead will be huge and
maintenance becomes a nightmare because I must make changes in
multiple locations.

Delphi provides a container class called a 'data module' where
connections and data access components can be installed during design.
Data modules are also used to hold support code for events, business
rules and so forth all in one place. Once defined, data aware controls
in forms or other units can access those components as need be either
during design or run time. This obviously reduces code and makes
design and maintenace much easier.

I am assuming there is some way to do this, or at least achieve the
same end, in .NET. However, I haven't come across an answer yet. Can
anyone point me in the right direction? I don't want to do any serious
work until I figure this problem out. Thanks.
Reply With Quote
Terry Robinson
View Public Profile
Send a private message to Terry Robinson
Find all posts by Terry Robinson
•
•
Ads by Google
ASP.NET Ecommerce & Cart
shopping cart, shipping, currency credit card processing for ASP.NET
www.dotnetecommerce.com
PDF for ASP & .NET
Creation, form fill-in, images, HTML-to-PDF, stitching, barcodes
www.AspPDF.com
Need a great C# ORM?
Data access in minutes, not days Download a free trial of LightSpeed
www.mindscape.co.nz
Simulation C#
VS.NET SDK, Object API, Wizards Monte Carlo - Download Free Trial
www.solver.com
•
•
Join Date: Apr 2004
Location: Tracy
Posts: 743
Reputation: Killer_Typo will become famous soon enough Killer_Typo
will become famous soon enough
Rep Power: 7
Solved Threads: 31
Killer_Typo's Avatar
Killer_Typo Killer_Typo is offline Offline
Master Poster
Re: Centralized data in .NET?
  #2
Jun 28th, 2007
i ran into an issue such as this a while back and ended up just
writing a library to handle all SQL connections so that all forms had
a central method for running their methods.
!!!!! WARNING YOUR COMPUTER MAY BE INFECTED WITH SPYWARE!!!! PAY AN
OVER PRICED AMMOUNT TO HAVE SOMTHING FIXED WE PLACED THERE IN THE
FIRST PLACE!!!!!!!!!

sound familiar, know how to block yourself and keep yourself clean.
_____________________
http://www.lavasoftusa.com/ -->adaware
http://www.safer-networking.org/en/index.html -->spybot S&D
http://www.javacoolsoftware.com/spywareblaster.html -->spywareblaster
http://www.javacoolsoftware.com/spywareguard.html -->spywareguard
_____________________
and dont forget to spread the reputation to those that deserve!
Reply With Quote
Killer_Typo
View Public Profile
Send a private message to Killer_Typo
Visit Killer_Typo's homepage!
Find all posts by Killer_Typo
•
•
Join Date: Apr 2007
Posts: 27
Reputation: Terry Robinson is an unknown quantity at this point
Rep Power: 2
Solved Threads: 1
Terry Robinson Terry Robinson is offline Offline
Light Poster
Re: Centralized data in .NET?
  #3
Jun 28th, 2007
•
•
•
•
Originally Posted by Killer_Typo View Post

    i ran into an issue such as this a while back and ended up just
writing a library to handle all SQL connections so that all forms had
a central method for running their methods.

I was afraid that might be the answer.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads