• Home
  • About
  • BestBloggingIdeas
  • DotNetLearningSource
  • FORUM
  • Joblinks
  • Latest News
  • Policy
  • POSTS
  • SimplySqlServer.Com && SimplyAspDotNet.Com
  • Sitemap

Join Ours Forum

Asp.Net,C#,Ajax,Sql server,silverlight,Javascript codes exambles articles,Programming exambles

RSS Feed
  • Bounty Huge Roll [Amazon Frustration-Free Packaging]
  • XML Introduction to XML VHS Video Training, 1 hr., 32 minutes.
  • The Basic Overview of Windows Mobile Development Asp.Net C#
  • Overview of Sql server extended properties Asp.Net C#
  • How to Use Sql Server Extended properties using visual studio Asp.Net C#
  • Adobe Dreamweaver Templates Accelerate Web Development
  • Top Tips for Web Design Projects
  • How to Achieve a Good Web Design Structure
  • To Use Or Not To Use Website Templates
  • Five Tips to a Successful Website
  • Top 10 Articles,


    Silverlight Datagrid Select Update Delete Insert Asp.Net C#

    Differences Similarities Benefits Between Typed Datasets and Untyped Datasets asp.net c#

    Linq to Sql Introduction Entities Ado.Net C# SqlClasses Attributes Linq Mapping

    Linq Programming/How Linq Works?/Linq Implementation In Asp.Net C# Ado.Net

    Performing Developing Using Investigating Asp.Net 2.0 Ajax Application Development Asp.Net C#

    Hosting/Install Wcf Services in a Windows Service Asp.Net C#

    Connecting Silverlight to Wcf Asp.Net C#

    Silverlight Data Grid Data Binding WCF Asp.Net C#

    Invoking/Accessing/Calling WCF Service Without Adding/Creating Proxy/Reference Asp.Net C#

    Performing Doing Creating Insert Update Delete sql data Using Linq Database Asp.Net C#

    Understanding Object-Relational Mapping in Asp.NET OOPS C#

    Posted by on October 6, 2010 Leave a comment (0) Go to comments

    Introduction:
    In this article,i am going to explain about how to perform the object-relational mapping in asp.net applications.

    Main:
    Relational databases treat data in terms of rows and columns, and objects treat things in terms of arrays and properties. Object-relational mapping (OR mapping) bridges these two worlds so your code can look like object code and still store itself in a relational database.

    you’ll create a simple object data model for a video store application. You’ll learn how to create mapped objects as well as workarounds for common pitfalls and quirks found in ADO.NET that can adversely affect your data model. Let’s start by discussing why you may need to worry about OR mapping.

    OR mapping provides three main benefits:

    Encapsulation: This is one of the primary pillars of object-oriented design, and OR mapping extends this concept to the database.
    Identity: A mapped object has an identity. In concrete terms it has a unique identifier. Most objects that are not mapped to a database lack a real identity independent of the data presented to the end user. Although it’s possible to create an identity for the objects using hashcodes or a similar methodology, mapped objects take this to the next logical level.
    Behavior: Data in a database does not have behavior. By fusing the world of databases to software code, you have the unique opportunity to define how your data should interact with your system in a clean and reusable way.

    Why Object Relational Mapping?

    OR mapping keeps the code in your application encapsulated and clean, and it makes it easy to manage changes in the database. By building an OR mapping component, your database logic will be encapsulated and hidden away from the rest of your system. Because the logic of loading and saving your object rests entirely in the OR mapping subsystem, the code in the rest of your program uses only clean object-oriented code. It also makes it far easier to make changes to the database later without having to alter every place you reference the data.

    The core issue is short-term vs. long-term laziness. Using short-term laziness would probably put SQL queries directly in your Web pages and just use SqlDataReader objects to work with your data. Past the initial implementation, this method makes your code hard to maintain. If you add a column to the database, you’ll have to find every reference to that table in your application and update it. Also, as the need to use the same table on multiple pages arises, you’ll find yourself copying and pasting large sections of code to get the same functionality on these new pages as well.

    Long-term laziness means taking the upfront time costs associated with building out the object relational mapping for your table. It will definitely take you longer to initially produce these objects, but in the long term it will mean much less work.

    Conclusion:
    Hope this helps,
    Happy coding.

    ASP.NET
    ← Effectively Using Working with Stored Procedures in asp.net ado.net applications c#
    Asp.Net Combilation Model Runtime Environment C# ISAPI →

    Learn Easily Using Video Tutorials


    How to choose the right Java IDE – explained Eclipse NetBeans BlueJ

    Developing/Creating/Performing/Configuring Java Applications Using Eclipse IDE

    Step By Step Guide for Download/Install Configure Eclipse IDE for Java

    Editing data with the GridView control Asp.Net C#

    Registering/Configuring Web Controls globally in web.config file asp.net c#

    Registering/Configuring Web Controls globally in web.config file asp.net c#

    Best way to prepare asp.net Interview - Success Stories

    Download Important Questions and PPT's:

    Sql Server Important Questions Online free download

    Dotnet Important Questions Online free download

    Exploring Linq to Sql Process Flow

    Learn how to perform silverlight programming

    Learn OOPs concepts in better and well manner

    Learn Ajax in better and well manner

    Leave a Reply Cancel reply

    Your email address will not be published. Required fields are marked *

    *

    *


    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

    Enter your email address:

    Delivered by FeedBurner

    • Recent Posts

      • Bounty Huge Roll [Amazon Frustration-Free Packaging]
      • XML Introduction to XML VHS Video Training, 1 hr., 32 minutes.
      • The Basic Overview of Windows Mobile Development Asp.Net C#
      • Overview of Sql server extended properties Asp.Net C#
      • How to Use Sql Server Extended properties using visual studio Asp.Net C#
    • Search by Tags!

      Application AspNet Basic between Black Bluetooth Build Business Collection Consultants Design Development Downloading effective Excel Experts Generics Implement Installing Interview Logic Management Microsoft Minutes Object Outlook Professional Programmer Programming Project Projects Questions Ready Select Server Services Silverlight Source Strings Studio Through using Visual Website Wordpress
    • Archives

      • August 2011
      • June 2011
      • May 2011
      • April 2011
      • March 2011
      • February 2011
      • December 2010
      • November 2010
      • October 2010
      • September 2010
      • August 2010
      • July 2010
      • June 2010
      • May 2010
      • April 2010
      • March 2010
      • February 2010
      • January 2010
      • December 2009
      • November 2009
      • October 2009
      • September 2009

    Copyright © 2012 NetProgrammingHelp.com

    Δ Top