MyGeneration Templates
MyGeneration is a quality freeware tool that can reduce coding time by generating code against your database. It comes with dOOdads, which is a high quality .NET framework for accessing your database tables and adding/updaiting deleting records via code. Very lightweight and written in both C# and VB.NET. I use the C# version, but it doesn't really matter which one you use as they are almost identical and when you compile to an assembly, you can use it with any language for .NET. There is also a forum at the site (registration required to post). The authors of MyGeneration (Mike Griffin and Justin Greenwood) regularly participate there.
It has a templating system, which allows you to output into any language (as it outputs to plain text files, so C#, VB.NET, SQL, PHP, Perl, Python - i.e. anything is possible). Templates are very powerful and simple to do, and you can write it with the following languages - C#, VB.NET, VBScript and JScript. With C# and VB.NET, you can embed Windows Forms controls in the input UI, or even create your own UI and run it instead of the built-in one.
You can also create several templates and group them together - i.e. you can have one template where you fill in the UI with the details you want and then run several templates after clicking OK. But an even better feature is the concept of projects. You can create a project that can consist of several modules, and each module can have a template instance (or more than one). When you add a template instance to a module you assign it a name, then record template input. When you save (i.e. click OK) it remembers your settings. So you could have one module that generates your stored procedures and business objects, another one to generate SQL to populate it with sample data and one to generate your input forms.
What is possibly even better is the Template Library. Users can create their own templates (plus assign them to archives that comprise of several) and upload them to the site. You can also submit articles/tutorials - in rich text (html) format, images are not hosted, so you have to point to your own site to include them. You can download templates from the library from within MyGeneration (unfortunately you cannot upload templates via it at the moment). While there aren't as many templates as there could be, there is still a good selection. Mostly for .NET, so it could do with some more for Java, PHP, JSP etc.
The few templates archives I have done are mostly for .NET:
- ASP.NET Add / Edit Record (dOOdads based)
- ASP.NET Basic Data Grid (SQL Server based)
- ASP.NET DataGrid (dOOdads based)
- ASP.NET Inline DataGrid
- ASP.NET Login
- ASP.NET Repeater (dOOdads based)
- ASP.NET SQL Server DataGrid
But there are some for other things:
- ASP VBScript Business Object
- Generate SQL Server Views
- Sample Template UI's (MyGeneration Interface)
- Sharp Develop Project
- SharpDevelop / NAnt dOOdads
Also there are some templates that are not part of an archive:
- ASP.NET Label
- SQL Server .NET Function Snippets
- SQL Server Change Owner (dOOdads and more ...)
- SQL Server Grant Access (dOOdads and more ...)
All templates are under the 'SBC' namespace in the MyGeneration Template Browser.
Comments