473,394 Members | 1,769 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,394 software developers and data experts.

Objects and Collections

Instead of using DataSets i want to implement an objects collection (in C#).
E.g. a class Person and the instances are stored in a collection of Persons.
So there is a layer that does the database access and mapping of relatoinal
<-> objects. The Persons collections should have all the necessary
possibilities: Add, Modify, Delete, Query.

Has anyone suggestions for documents, books on this topic?
Thanks,
Guy

Nov 15 '05 #1
3 1287
Guy, you should look in to implementing the ICollection interface. Here's
one quick link to get you started. You can find lots more on
msdn.microsoft.com and www.google.com.

http://www.parkscomputing.com/dotnet/collection.aspx

--
Greg Ewing [MVP]
http://www.citidc.com

"Guy Dillen" <gu********@hotmail.com> wrote in message
news:3f*********************@reader2.news.skynet.b e...
Instead of using DataSets i want to implement an objects collection (in C#). E.g. a class Person and the instances are stored in a collection of Persons. So there is a layer that does the database access and mapping of relatoinal <-> objects. The Persons collections should have all the necessary
possibilities: Add, Modify, Delete, Query.

Has anyone suggestions for documents, books on this topic?
Thanks,
Guy

Nov 15 '05 #2
Thanks for your information.

Guy

"Greg Ewing [MVP]" <gewing@_NO_SPAM_gewing.com> wrote in message
news:ek**************@TK2MSFTNGP12.phx.gbl...
Guy, you should look in to implementing the ICollection interface. Here's
one quick link to get you started. You can find lots more on
msdn.microsoft.com and www.google.com.

http://www.parkscomputing.com/dotnet/collection.aspx

--
Greg Ewing [MVP]
http://www.citidc.com

"Guy Dillen" <gu********@hotmail.com> wrote in message
news:3f*********************@reader2.news.skynet.b e...
Instead of using DataSets i want to implement an objects collection (in

C#).
E.g. a class Person and the instances are stored in a collection of

Persons.
So there is a layer that does the database access and mapping of

relatoinal
<-> objects. The Persons collections should have all the necessary
possibilities: Add, Modify, Delete, Query.

Has anyone suggestions for documents, books on this topic?
Thanks,
Guy


Nov 15 '05 #3
Guy,
In addition to Greg's comments. I would recommend Rockford Lhotka's book
"Expert One-on-One Visual Basic .NET Business Objects" which presents the
CSLA.NET framework (built on .NET) based on objects & collections of
objects. http://www.lhotka.net (the book is VB.NET, however there are C#
ports available, plus read
http://www.lhotka.net/Articles.aspx?...-2e6b1d7a7f87).

I would also recommend Martin Fowler's book "Patterns of Enterprise
Application Architecture" from Addison Wesley, which provides a number of
patterns to managed objects, collections of objects and their interaction
with the database. http://www.martinfowler.com/books.html#eaa

Hope this helps
Jay

"Guy Dillen" <gu********@hotmail.com> wrote in message
news:3f*********************@reader2.news.skynet.b e...
Instead of using DataSets i want to implement an objects collection (in C#). E.g. a class Person and the instances are stored in a collection of Persons. So there is a layer that does the database access and mapping of relatoinal <-> objects. The Persons collections should have all the necessary
possibilities: Add, Modify, Delete, Query.

Has anyone suggestions for documents, books on this topic?
Thanks,
Guy

Nov 15 '05 #4

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

Similar topics

11
by: thechaosengine | last post by:
Hi all, I have a very general but quite significant question about objects. My question is, when should I create them? I know thats a crap question so let me explain a bit further. Lets...
10
by: thechaosengine | last post by:
Hi all, I have a very general but quite significant question about objects. My question is, when should I create them? I know thats a crap question so let me explain a bit further. Lets...
3
by: Rob Thomas | last post by:
Hi, I've been tasked to come up with a new architecture for a large application at one of my customer's sites. In the past, I have developed multi-tier applications whereby the business...
11
by: thechaosengine | last post by:
Hi all, I have a very general but quite significant question about objects. My question is, when should I create them? I know thats a crap question so let me explain a bit further. Lets...
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: 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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.