I've seen that. I think my app is faster when you need to generate 20 collections at once. Using the VS.Net template method, you need to repeat the same step 20 times. Not to mention the time it takes to click through all the menus. Even with using keyboard shortcuts its still a pain. Their templates just extend CollectionBase. The template I'm using includes xml comments along with a bunch of other "stuff". Plus some corporate environments have their Windows machines locked down and altering Visual Studio is not always an option.
The way I do it now (using QuickCodes) is that I type this on a line: coll Product and press Alt-Q and it generates the collection. Does ReSharper allow you to generate things like that? Everyone keeps nagging me to switch over to it :) --- Gilles Bayon <[EMAIL PROTECTED]> wrote: > Even better, > http://weblogs.asp.net/egarmon/archive/2003/11/13/37383.aspx > Just create a collection from VS.NET <http://VS.NET> as a class. > > On 5/23/05, Ron Grabowski <[EMAIL PROTECTED]> wrote: > > > > Others may find this useful... > > > > Since IBatisNet plays well with strongly typed collections, I wrote > a > > small tool to help me create strongly typed collections: > > > > http://www.ronosaurus.com/IBatisNet/collgen/ > > > > Basically I enter the name of my entity objects in the TextBox (one > per > > line, as many as I want): > > > > Product > > Category > > > > and it generates a .zip file on-the-fly containing: > > > > ProductCollection > > CategoryCollection > > > > The ProductCollection consists of the following items: > > > > Interface IProductCollection > > Interface IProductList > > Interface IProductEnumerator > > Class ProductCollection > > > > There is also support for collections being in a different > namespace > > than the entity objects. > > > > Here is an example output file: > > > > > > > http://www.ronosaurus.com/IBatisNet/collgen/StonglyTypedCollections.zip > > > > Yes, I am aware of Code Smith and QuickCode. In fact the template > > collection came from a QuickCode submission. If you need more > > functionality than what my single one form app does, by all means > use > > Code Smith or QuickCode. > > > > What's nice about generating collections this way is that I can > have my > > browser open up the generated .zip file after its done downloading > then > > I simply drag the .cs files into Visual Studio. No need to open > another > > program, select a template, type things into it, generate the > files, > > then close out of everything. > > > > Maybe I'll allow the user to specify what type of collection they > want: > > > > > > simple: just extend CollectionBase > > advanced: all the bells and whistles (how it is now) > > > > - Ron > > >