Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Object Persistence

Object Persistence

Scheduled Pinned Locked Moved Database
databasesql-serversysadminquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gus_br
    wrote on last edited by
    #1

    Hi everyone. I want to know from you guys what approach you're using to persist an object into the SQL Server database? I and some work mates are discussing about the best approach of doing this for our next project, but we don't have much information or experience about the subject, so any information would be welcomed. Thanks in advance

    C 1 Reply Last reply
    0
    • G gus_br

      Hi everyone. I want to know from you guys what approach you're using to persist an object into the SQL Server database? I and some work mates are discussing about the best approach of doing this for our next project, but we don't have much information or experience about the subject, so any information would be welcomed. Thanks in advance

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      pontonet wrote:

      I want to know from you guys what approach you're using to persist an object into the SQL Server database?

      INSERT statements usually do it for me. I think you need to provide more detail. For example, are you talking about ORM? Just any type of object? Or do you need to turn an existing object model in to a relational model?


      Upcoming FREE developer events: * Glasgow: db4o: An Embeddable Database Engine for Object-Oriented Environments, Mock Objects, SQL Server CLR Integration, Reporting Services ... My website

      G 1 Reply Last reply
      0
      • C Colin Angus Mackay

        pontonet wrote:

        I want to know from you guys what approach you're using to persist an object into the SQL Server database?

        INSERT statements usually do it for me. I think you need to provide more detail. For example, are you talking about ORM? Just any type of object? Or do you need to turn an existing object model in to a relational model?


        Upcoming FREE developer events: * Glasgow: db4o: An Embeddable Database Engine for Object-Oriented Environments, Mock Objects, SQL Server CLR Integration, Reporting Services ... My website

        G Offline
        G Offline
        gus_br
        wrote on last edited by
        #3

        I meant better approaches, for instance, NHibernate, and so on. Technologies that does it almost automatically for you, without needing to write much SQL code directly.

        C 1 Reply Last reply
        0
        • G gus_br

          I meant better approaches, for instance, NHibernate, and so on. Technologies that does it almost automatically for you, without needing to write much SQL code directly.

          C Offline
          C Offline
          Colin Angus Mackay
          wrote on last edited by
          #4

          pontonet wrote:

          I meant better approaches, for instance, NHibernate, and so on.

          ORM tools then.

          pontonet wrote:

          Technologies that does it almost automatically for you, without needing to write much SQL code directly.

          Ah, well... Can't help you if you are looking for ORM tools. I'm a big fan of creating stored procedures and a DAL that is a proxy for the stored procedure. I don't advocate exposing tables directly on the grounds that it is a security risk. Although, having said that some ORM tools do make better allowances for stored procedures LLBLGen I believe is one.


          Upcoming FREE developer events: * Glasgow: db4o: An Embeddable Database Engine for Object-Oriented Environments, Mock Objects, SQL Server CLR Integration, Reporting Services ... My website

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups