Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 949997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T23:29:38+00:00 2026-05-15T23:29:38+00:00

I design an objected oriented application using C# with database back end, for some

  • 0

I design an objected oriented application using C# with database back end, for some time I was building same application using procedural way in which I feel storing data to database is little bit easier using simple SQL statement.
I my application I want to store the objects attribute to database, for example for an item object

    Class Item {
 private string itemId;

private string itemname;

private Invoice inv;  //assume Invoice object

//method

public bool storetodb() {

//..something like this
}
}

The problem is I feel a little bit complex when storing and retrieving object data to database. When I searched on some resource also they use like collection class to map between object on the application and relational database. Even I have searched SO but I couldn’t find any related information. One source I got was

  • http://www.codeproject.com/KB/database/AONETOOP.aspx ….. The author uses collection to store and retrieve data
  • I hear also about ORM technology although I have never tried it.

So what is good practice for designing these types of applications?
can you give any links, article, recommended book or response for tackling these types of problem.

Thanks

Update

It seems ORM tools mainly nhibernate is most promising from your suggestion.
Thanks all of for your help, I will consider ORM

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T23:29:39+00:00Added an answer on May 15, 2026 at 11:29 pm

    You should invest some time to investigate one or two ORMs. If you’re working with .NET 4.0, you should give the new implementation of Entity Framework a try. Another widely used ORM is NHibernate, which is a .NET version of Java’s famous Hibernate ORM. However, from my own standing, ensure that you encapsulate the whole ORM into your Data Access Layer (DAL) so you can use native ADO.NET if the ORM ever hits the wall.

    Another option are EAV CR databases. However, it’s not the easiest way to learn how to live with. (I did that more than five years.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Which design pattern should I use for a very simple Object-oriented todo list? Initially
I am building a database system and having trouble with the design of one
Design wise and performance wise which approach is recommended for handling multiple Zeromq sockets
By design I'm expecting a DuplicateKeyExeception from time to time. Is it possible to
Design a database to store details about U.S. Presidents and their terms in office.
I design my database incorrectly, should I fix this while its in development? user
Design question for using Business Objects as formBackingObjects in a Spring SimpleFormController. Our controller's
Design problem : Using a non-thread-safe component (Collection, API, ...) in/with a multithread component
during design time i cannot figure out how to resize the datagridview columns in
I design a multi-threaded application that will monitor and handle files in selected folders

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.