0

I used CodeDOM to generate a class (entity class) from a given database table. I used this tutorial and made my application. It's OK and working fine. By using codeDOM can I edit an existing entity class and regenerate it against the table it's based on ? I searched for it but no luck. If so, can you point me to the direction. Or if not, How can I regenerate my existing class modified?

Irshad
  • 3,071
  • 5
  • 30
  • 51

1 Answers1

2

With CodeDom you can generate a code for a class at runtime, but you can't modify an existing class. The only way is to regenerate it from scratch based upon your table, and I think is the approach you can use in your case.

Adi Lester
  • 24,731
  • 12
  • 95
  • 110
Felice Pollano
  • 32,832
  • 9
  • 75
  • 115