Objects and Collections

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Guy Dillen

    #1

    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



  • Greg Ewing [MVP]

    #2
    Re: Objects and Collections

    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.



    --
    Greg Ewing [MVP]
    IT support built exclusively for nonprofits. 25 years of managed IT, help desk, and cybersecurity - so your team can focus on your mission.


    "Guy Dillen" <guy_dillen@hot mail.com> wrote in message
    news:3f747d02$0 $821$ba620e4c@r eader2.news.sky net.be...[color=blue]
    > Instead of using DataSets i want to implement an objects collection (in[/color]
    C#).[color=blue]
    > E.g. a class Person and the instances are stored in a collection of[/color]
    Persons.[color=blue]
    > So there is a layer that does the database access and mapping of[/color]
    relatoinal[color=blue]
    > <-> 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
    >
    >
    >[/color]


    Comment

    • Guy Dillen

      #3
      Re: Objects and Collections

      Thanks for your information.

      Guy

      "Greg Ewing [MVP]" <gewing@_NO_SPA M_gewing.com> wrote in message
      news:ekDMYELhDH A.1668@TK2MSFTN GP12.phx.gbl...[color=blue]
      > 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" <guy_dillen@hot mail.com> wrote in message
      > news:3f747d02$0 $821$ba620e4c@r eader2.news.sky net.be...[color=green]
      > > Instead of using DataSets i want to implement an objects collection (in[/color]
      > C#).[color=green]
      > > E.g. a class Person and the instances are stored in a collection of[/color]
      > Persons.[color=green]
      > > So there is a layer that does the database access and mapping of[/color]
      > relatoinal[color=green]
      > > <-> 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
      > >
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Jay B. Harlow [MVP - Outlook]

        #4
        Re: Objects and Collections

        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" <guy_dillen@hot mail.com> wrote in message
        news:3f747d02$0 $821$ba620e4c@r eader2.news.sky net.be...[color=blue]
        > Instead of using DataSets i want to implement an objects collection (in[/color]
        C#).[color=blue]
        > E.g. a class Person and the instances are stored in a collection of[/color]
        Persons.[color=blue]
        > So there is a layer that does the database access and mapping of[/color]
        relatoinal[color=blue]
        > <-> 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
        >
        >
        >[/color]


        Comment

        Working...