Reputation: 53243
How can I configure MyGeneration conde-generator tool to run the code template for each Db table and create a separate .cs for each?
Upvotes: 0
Views: 515
Reputation: 216
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
Upvotes: 0