b.Row Data Gateway Pattern

  1. Motivation

      1. To create an object that acts as a Gateway to a single record in a data source. There is one instance per row.

  2. Summary

      1. A Row Data Gateway gives you objects that look exactly like the record in your record structure but can be accessed with the regular mechanisms of your programming language. All details of data source access are hidden behind this interface.

    1. When to Use

    2. This pattern is obsolete for direct implementation because ORM tools like Entity Frameworks work do this job more effectively.

  1. References

      1. http://martinfowler.com/eaaCatalog/rowDataGateway.html