Entity Creation

  • Thread starter Thread starter Charlie Brown
  • Start date Start date
C

Charlie Brown

I am trying to understand a concept that I have read about, but have
not seen in action.

If I have a database table called Customers, a class named the same
and each field in the class has the same names as the columns in the
Customers table, is there a way to 'map' the data to the fields (or
properties) of the class in such a way that it could be reused for any
table/class pair? The idea is so you don't have to rewrite the same
db logic for each class.
 
Back
Top