473,652 Members | 3,045 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Design patterns in .NET

Hi,

i have a few questions i would like to ask :

1 - Where can i find good design patterns resources for .NET ?
2 - What's the best design pattern for a windows database application (
multiuser ) ?
3 - I'm trying to develop a simple database application . I'm thinking of
defining a class for every table in the database. Is this a good design
practice ?

Thanks,
José Carlos Ferreira
Aug 24 '05 #1
5 1854

"Coder-X" <en************ ***@yahoo.com.b r> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Hi,

i have a few questions i would like to ask :

1 - Where can i find good design patterns resources for .NET ? http://www.wickedlysmart.com/HeadFir...ernsIndex.html
You should also check out the Microsoft Patterns and Practices site
http://msdn.microsoft.com/practices/ 2 - What's the best design pattern for a windows database application (
multiuser ) ? There are many many patterns each of which handles different areas. And
best is really dependent on what you are trying to accomplish. There is no
1 best pattern for everythign in windows forms, you'll probably want to use
multiple patterns. 3 - I'm trying to develop a simple database application . I'm thinking of
defining a class for every table in the database. Is this a good design
practice ? Probably not. Every time you have a new table , you'll have to recompile
your application. You may want to take a look at some of the OR Mappers, two
of the best I know of are www.deklarit.com and llblGenPro
http://www.llblgen.com/defaultgeneric.aspx
Thanks,
José Carlos Ferreira

Aug 24 '05 #2
I second the motion on the "Head First" book. While the code is in
Java, it does not really matter, the patterns are explained very well.

Aug 24 '05 #3

Coder-X wrote:
Hi,

i have a few questions i would like to ask :

1 - Where can i find good design patterns resources for .NET ?
"Patterns of Enterprise Application Architecture" by Martin Fowler
(ISBN 0-321-12742-0) may be just the resource you're looking for. The
author explains several patterns for working with relational databases.
2 - What's the best design pattern for a windows database application (
multiuser ) ?
There isn't a single best pattern for every problem. Hopefully, that's
a question you'll be able to answer after you have reviewed patterns
others have used in the past.
3 - I'm trying to develop a simple database application . I'm thinking of
defining a class for every table in the database. Is this a good design
practice ?
You did say it would be a simple application, so yes, it might be a
good design in your case.
Thanks,
José Carlos Ferreira


Aug 24 '05 #4
Thanks Chris, and the C# code is included on that link which makes it even
cooler. Pretty close to Java but there are definitely enough nuances to
make you apprecaite the conversion.
"Chris Dunaway" <du******@gmail .com> wrote in message
news:11******** *************@z 14g2000cwz.goog legroups.com...
I second the motion on the "Head First" book. While the code is in
Java, it does not really matter, the patterns are explained very well.

Aug 24 '05 #5
SP

"Coder-X" <en************ ***@yahoo.com.b r> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Hi,

i have a few questions i would like to ask :

1 - Where can i find good design patterns resources for .NET ?
2 - What's the best design pattern for a windows database application (
multiuser ) ?
3 - I'm trying to develop a simple database application . I'm thinking of
defining a class for every table in the database. Is this a good design
practice ?
You should be asking the question more like "how will I persist my
classes?". At one end of the spectrum is mapping each class to a table. At
the other end is mapping every class to use just one table. You will
probably want to do in between these two options.

Take a look at Agile Database Techniques by Scott Ambler.

SP

Thanks,
José Carlos Ferreira

Aug 28 '05 #6

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

Similar topics

5
674
by: Don Vaillancourt | last post by:
Hello all, Over the years as I design more database schemas the more I come up with patterns in database design. The more patterns I recognize the more I want to try to design some kind of generic design patterns that can be used and shared amongst many sub-schemas. For example, the grouping of entities. I may have the following tables: employee, product and client. These tables have no direct relationship with each other. But...
1
2370
by: Jay | last post by:
The GOF text is widely considered the definitive book on the topic. Design Patterns: Elements of Reusable Object-Oriented Softare, Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides Note, all the examples are in C++ but you can get through them with a little work.
1
1873
by: Josh28 | last post by:
Hi We are a group of two chaps just out of undergrad, we created a software to automate the use of Design Patterns. We have put it up at Source Forge--http://dpatoolkit.sourceforge.net/ The software has been designed using the .NET framework and coded in C#. The patterns can be stored as plug-ins in XML, adding any number of attributes like Intent, Behavior and the like... Class
13
6549
by: John Salerno | last post by:
Here are a few I'm considering: Design Patterns Explained : A New Perspective on Object-Oriented Design (2nd Edition) (Software Patterns Series) by Alan Shalloway Design Patterns C# by Steven John Metsker Design Patterns by Erich Gamma Head First Design Patterns by Elisabeth Freeman
2
2601
by: Carlo Stonebanks | last post by:
I have the infamous GoF Design Patterns boo - it's been sittin gon my shelf for years. I have a huge reading list and find this book a rather dry read and am always putting it off. I have recommendation for "Head First Design Patterns" book, but it's aimed aimed at Java developers. I'd rather have a book that has a "For Dummies" readability that that hopefully exploits C# and .NET features and (oh, please, please, please) includes a CD...
22
4713
by: Krivenok Dmitry | last post by:
Hello All! I am trying to implement my own Design Patterns Library. I have read the following documentation about Observer Pattern: 1) Design Patterns by GoF Classic description of Observer. Also describes implementation via ChangeManager (Mediator + Singleton) 2) Pattern hatching by John Vlissides Describes Observer's implementation via Visitor Design Pattern. 3) Design Patterns Explained by Alan Shalloway and James Trott
5
2369
by: Ludwig Wittgenstein | last post by:
Other than the Design Patterns book, which book(s) is/are the best to learn object-oriented software design/architecture from ?
7
3100
by: =?Utf-8?B?bWF2cmlja18xMDE=?= | last post by:
Hi, I would like to know more about design patterns and specifically using C#. Can any one recommend a good book? Thanks
5
2735
by: macca | last post by:
Hi, I'm looking for a good book on PHP design patterns for a OOP beginner - Reccommendations please? Thanks Paul
10
3659
by: vital | last post by:
Hi, I am designing the middle tier of a project. It has 6 classes and microsoft application data access block. The six classes are DBServices, Logger, ProjectServices ... etc. and all these classes talk to front-end directly. Do I need to use any design pattern in this? or what kind of design pattern is this?
0
8811
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8703
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7302
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6160
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5619
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4145
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4291
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2703
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1914
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.