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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top