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? 3 1763
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?
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?
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? > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Raymond Hettinger |
last post by:
Comments are invited on the following proposed PEP.
Raymond Hettinger
-------------------------------------------------------
PEP: 329
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: r.z. |
last post by:
class vector3
{
public:
union
{
float data;
struct
{
float x, y, z;
};
|
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.
-...
|
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:...
|
by: lllomh |
last post by:
Define the method first
this.state = {
buttonBackgroundColor: 'green',
isBlinking: false, // A new status is added to identify whether the button is blinking or not
}
autoStart=()=>{
|
by: DJRhino |
last post by:
Was curious if anyone else was having this same issue or not....
I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
|
by: Aliciasmith |
last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
|
by: tracyyun |
last post by:
Hello everyone,
I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
|
by: NeoPa |
last post by:
Hello everyone.
I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report).
I know it can be done by selecting :...
|
by: Teri B |
last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course.
0ne-to-many. One course many roles.
Then I created a report based on the Course form and...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
|
by: isladogs |
last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, Mike...
|
by: GKJR |
last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...
| |