Is this possible? (modifying generated code)

  • Thread starter Thread starter D
  • Start date Start date
D

D

Ok I have several tables all with the exact same design.

In my data access layer class library I added a new component and dragged
one of the tables on it and generated all the code that goes along with
that.

What I'd like to do or rather I am trying to do is modify that code so that
it accepts a string of the table name so it's not bound to just that one
table since I have several more tables just like it.

so do you think this is possible or is this an exercise in futility?

Thanks
 
D said:
Ok I have several tables all with the exact same design.

In my data access layer class library I added a new component and dragged
one of the tables on it and generated all the code that goes along with
that.

What I'd like to do or rather I am trying to do is modify that code so
that it accepts a string of the table name so it's not bound to just that
one table since I have several more tables just like it.

so do you think this is possible or is this an exercise in futility?

Thanks

I got it to work. It involved changing every where the specific table was
mentioned in the generated code to a string of the table. And that string is
set during construction .

Cool.
 
Back
Top