I'm looking to write a macro that I can fully customize with knowledge of a class.
For example, I'll be using a typed dataset Person which has say 3 tables on it.
I want to be able to run the macro in the Person Partial Class and have it create an instance of a table adapter, my custom Fill, Refresh & Persist methods as well as transaction logic if there are 2+ tables.
So basically I could work everything out given that I know how many tables there are and what their names are. An advanced version might take the relationships into account.
This is the best article I've found for macros: http://msdn.microsoft.com/msdnmag/issues/05/07/XMLComments/ so far. It helps with the code writing, but not how to access or pass a class into macro. There isn't a whole lot out there and a lot of it is rather specific, so any articles that access a class would be great.
For example, I'll be using a typed dataset Person which has say 3 tables on it.
I want to be able to run the macro in the Person Partial Class and have it create an instance of a table adapter, my custom Fill, Refresh & Persist methods as well as transaction logic if there are 2+ tables.
So basically I could work everything out given that I know how many tables there are and what their names are. An advanced version might take the relationships into account.
This is the best article I've found for macros: http://msdn.microsoft.com/msdnmag/issues/05/07/XMLComments/ so far. It helps with the code writing, but not how to access or pass a class into macro. There isn't a whole lot out there and a lot of it is rather specific, so any articles that access a class would be great.