I haven't downloaded MyGeneration yet. I'm trying to decide if it will help in my current project.
I have a existing (legacy) Oracle schema. I'm building a .Net library to access it. I'm currently hand coding business objects by building an appropriate SQL select, which may include several table joins - potentially including multiple joins of the same table with different alias.
Once I've defined the SQL that defines the object data, I hand code the business object class definition. I load the object data via SQL selects and parameters. (Save will generally be handled by pre-existing stored procedures.) Once I have defined the base object, I extract a public interface.
Once I have the object and the interface, I use a VS2003 Custom Tool to generate a strongly typed collection and an interface to it. ( I've extracted the updating the object data from the datareader - and use the LoadFromReader method of the base business object in loading the collection in the generated collection load. )
Coding the base business object by hand from the SQL has become quite painful. I'd love to be able to generate the object from a template (and replace the CustomTool collection generation at the same time.) But I'm not sure your product will be able to do that.
Make me happy - tell me that I can define a template that will work from my sql statements directly - without having to create database views for each one first.
If views are the only way to generate - can I generate from a view that only ever exists in my development environment - while substituting my SQL in the generated code, so that I won't have to deploy bunches of new views in the schema to go live with the library?
What do you say? Will MyGeneration help release me from my misery?
MarFarMa
