473,386 Members | 1,924 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Standard/Best Practice

I am rebuilding an existing application that relies on an SQL DB. The
app is a scheduling/employee management program. My question pertains
to best practices in dotnet and database.

I use a 3 tier model and have custom classes for things like Employees.
What comes to question is when I load an Employee from my DB, I
populate the properties of the object with the data in the dataset.
When I want to view the employee on a form, i bind the properties to
form elements. To update the employee, I param the employee data and
send it back to the database. If I was using a dataadapter and
dataset, however, it would eliminate a lot of code and time.

Unfortunately this practice eliminates most of the benefits of
datasets, binding, the designer surface, etc. It also forces me to
create a custom collection for even the simplest of objects instead of
passing a dataset to the designer surface and binding it to a datagrid.

Is there a better practice, or should i continue with this course?

Jun 6 '06 #1
3 1787
Chrown,

..Net is a environment where you can make things that are for your best
practise. If there was a general best practise than it would be more like
office access in my idea.

Because that the words 3 tier are used at the moment more and more (and seen
on many webpages) for multilayer applications than for real physical 3 tier
applications, can you describe it a little bit more. Because of your
description it can be both.

In my idea is adonet not designed for physical 3 tier applications which can
be easily done than on seperated servers. If it is a datalayer approach,
than it is in version 2005 almost complete incorporated in the strongly
typed datasets (datasources).

If it is version 2002/2003 than mostly just using a component instead of a
form will make the road to the datalayer concept very simple to go.

Just some thoughts, because I am not sure what you are using.

Cor

<cb****@duclaw.com> schreef in bericht
news:11**********************@f6g2000cwb.googlegro ups.com...
I am rebuilding an existing application that relies on an SQL DB. The
app is a scheduling/employee management program. My question pertains
to best practices in dotnet and database.

I use a 3 tier model and have custom classes for things like Employees.
What comes to question is when I load an Employee from my DB, I
populate the properties of the object with the data in the dataset.
When I want to view the employee on a form, i bind the properties to
form elements. To update the employee, I param the employee data and
send it back to the database. If I was using a dataadapter and
dataset, however, it would eliminate a lot of code and time.

Unfortunately this practice eliminates most of the benefits of
datasets, binding, the designer surface, etc. It also forces me to
create a custom collection for even the simplest of objects instead of
passing a dataset to the designer surface and binding it to a datagrid.

Is there a better practice, or should i continue with this course?

Jun 6 '06 #2
My tiers consist of a UI layer, Business Layer, Data access layer.
There is also a data layer which is the SQL Server Database. I am
using dotnet 1.1 on VS 2003. My Data access layer uses Strongly typed
datasets, but these only get used to pull info from to populate
class/object data. My Data acces layer uses components to make use of
the designer features to quickly create dataadapters/readers, however
the VS help ends there when the dataset gets passed to the Business
layer only and doesn't make it to the UI layer.

This model is the previous developers model which I am hoping to make
improve to make development and code management better.
Cor Ligthert [MVP] wrote:
Chrown,

.Net is a environment where you can make things that are for your best
practise. If there was a general best practise than it would be more like
office access in my idea.

Because that the words 3 tier are used at the moment more and more (and seen
on many webpages) for multilayer applications than for real physical 3 tier
applications, can you describe it a little bit more. Because of your
description it can be both.

In my idea is adonet not designed for physical 3 tier applications which can
be easily done than on seperated servers. If it is a datalayer approach,
than it is in version 2005 almost complete incorporated in the strongly
typed datasets (datasources).

If it is version 2002/2003 than mostly just using a component instead of a
form will make the road to the datalayer concept very simple to go.

Just some thoughts, because I am not sure what you are using.

Cor

<cb****@duclaw.com> schreef in bericht
news:11**********************@f6g2000cwb.googlegro ups.com...
I am rebuilding an existing application that relies on an SQL DB. The
app is a scheduling/employee management program. My question pertains
to best practices in dotnet and database.

I use a 3 tier model and have custom classes for things like Employees.
What comes to question is when I load an Employee from my DB, I
populate the properties of the object with the data in the dataset.
When I want to view the employee on a form, i bind the properties to
form elements. To update the employee, I param the employee data and
send it back to the database. If I was using a dataadapter and
dataset, however, it would eliminate a lot of code and time.

Unfortunately this practice eliminates most of the benefits of
datasets, binding, the designer surface, etc. It also forces me to
create a custom collection for even the simplest of objects instead of
passing a dataset to the designer surface and binding it to a datagrid.

Is there a better practice, or should i continue with this course?


Jun 6 '06 #3
cbBrown,

Are you able to have a look at VS 2005. I think that changing now based on
VS2003 is not the wisest to do.

The concept with the tableadapter, the datasources and the new strongly
typed dataset is in my opinion so much changed, that it would be wrong to go
on with the concept of VS 2003.

Maybe can you try an Express version of VS2005.

Just my thought,

Cor

<cb****@duclaw.com> schreef in bericht
news:11**********************@f6g2000cwb.googlegro ups.com...
My tiers consist of a UI layer, Business Layer, Data access layer.
There is also a data layer which is the SQL Server Database. I am
using dotnet 1.1 on VS 2003. My Data access layer uses Strongly typed
datasets, but these only get used to pull info from to populate
class/object data. My Data acces layer uses components to make use of
the designer features to quickly create dataadapters/readers, however
the VS help ends there when the dataset gets passed to the Business
layer only and doesn't make it to the UI layer.

This model is the previous developers model which I am hoping to make
improve to make development and code management better.
Cor Ligthert [MVP] wrote:
Chrown,

.Net is a environment where you can make things that are for your best
practise. If there was a general best practise than it would be more like
office access in my idea.

Because that the words 3 tier are used at the moment more and more (and
seen
on many webpages) for multilayer applications than for real physical 3
tier
applications, can you describe it a little bit more. Because of your
description it can be both.

In my idea is adonet not designed for physical 3 tier applications which
can
be easily done than on seperated servers. If it is a datalayer approach,
than it is in version 2005 almost complete incorporated in the strongly
typed datasets (datasources).

If it is version 2002/2003 than mostly just using a component instead of
a
form will make the road to the datalayer concept very simple to go.

Just some thoughts, because I am not sure what you are using.

Cor

<cb****@duclaw.com> schreef in bericht
news:11**********************@f6g2000cwb.googlegro ups.com...
>I am rebuilding an existing application that relies on an SQL DB. The
> app is a scheduling/employee management program. My question pertains
> to best practices in dotnet and database.
>
> I use a 3 tier model and have custom classes for things like Employees.
> What comes to question is when I load an Employee from my DB, I
> populate the properties of the object with the data in the dataset.
> When I want to view the employee on a form, i bind the properties to
> form elements. To update the employee, I param the employee data and
> send it back to the database. If I was using a dataadapter and
> dataset, however, it would eliminate a lot of code and time.
>
> Unfortunately this practice eliminates most of the benefits of
> datasets, binding, the designer surface, etc. It also forces me to
> create a custom collection for even the simplest of objects instead of
> passing a dataset to the designer surface and binding it to a datagrid.
>
> Is there a better practice, or should i continue with this course?
>

Jun 6 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Raymond Hettinger | last post by:
Comments are invited on the following proposed PEP. Raymond Hettinger ------------------------------------------------------- PEP: 329
6
by: John Bentley | last post by:
John Bentley writes at this level: If we think about our savings accounts then division never comes in (as far as I can see). We deposit and withdraw exact amounts most of the time. Occasionaly...
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
17
by: | last post by:
I have an app that retrieves data from an Access database. At the moment I have the SQL string as a Const in my app. I understand this is not best practice. I don't want the user to have access to...
3
by: Jeff S | last post by:
Just wondering if it's standard practice to make DAL classes STATIC (in a Windows Forms). Doing so would make sense to me because DAL methods are typically called quite frequently - certainly the...
7
by: Robert Seacord | last post by:
The CERT/CC has just deployed a new web site dedicated to developing secure coding standards for the C programming language, C++, and eventually other programming language. We have already...
32
by: r.z. | last post by:
class vector3 { public: union { float data; struct { float x, y, z; };
7
by: Steven Woody | last post by:
hi, are those containers provided in std thread safe? if not, does the std ( or the language itself ) provide any method to protect critical section in a thread unsafe operation? thanks. -...
126
by: Dann Corbit | last post by:
Rather than create a new way of doing things: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2497.html why not just pick up ACE into the existing standard:...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.