0

How can I configure MyGeneration conde-generator tool to run the code template for each Db table and create a separate .cs for each?

pencilCake
  • 51,323
  • 85
  • 226
  • 363

1 Answers1

0

Simply run the template and select all tables from the list (it is multi-Select).or you need to write a template for this.
for template writing , check the forum Here specially template forums (last three ones) .or try to make self learning by opening an existing template such as : CSharp_SQL_dOOdads_BusinessEntity.vbgen you will find code such as :

Sub bindTables(sDatabase)
    Set db = MyMeta.Databases(sDatabase)
    lstTables.BindData(db.Tables)
End Sub

I dont know , if you can make a for loop on "db.Tables" and doing whatever for each table . also check this question and this and this and this template library

Community
  • 1
  • 1
houssam11350
  • 216
  • 1
  • 9