473,800 Members | 2,930 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Code Generator

Hi Friends,
I have a table with 30 fields and i'd like to know if there is some code
generator that get those fields and transform to properties ???

--
Please, check my theSpoke:
http://www.thespoke.net/MyBlog/dgroh/MyBlog.aspx
Nov 17 '05 #1
8 1763
If you mean to transform class fields into class properties, my add-in
(below) can do that with the Convert Field to Property feature.
--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

"Paperback Writer" <ne*********@gm ail.com> escribió en el mensaje
news:eq******** ********@TK2MSF TNGP15.phx.gbl. ..
Hi Friends,
I have a table with 30 fields and i'd like to know if there is some code
generator that get those fields and transform to properties ???

--
Please, check my theSpoke:
http://www.thespoke.net/MyBlog/dgroh/MyBlog.aspx

Nov 17 '05 #2
hi,

A time ago a thread talked a lot about this, IIRC joanna Carter and Richard
Blewett had some lengthly and interesting arguments on it.

Do a google for those names.

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Paperback Writer" <ne*********@gm ail.com> wrote in message
news:eq******** ********@TK2MSF TNGP15.phx.gbl. ..
Hi Friends,
I have a table with 30 fields and i'd like to know if there is some code
generator that get those fields and transform to properties ???

--
Please, check my theSpoke:
http://www.thespoke.net/MyBlog/dgroh/MyBlog.aspx

Nov 17 '05 #3
Paperback Writer wrote:
Hi Friends,
I have a table with 30 fields and i'd like to know if there is some code
generator that get those fields and transform to properties ???

[...snip...]

You could try MyGeneration:

http://www.mygenerationsoftware.com/Default.aspx
Nov 17 '05 #4
JetBrains Resharper (http://www.jetbrains.com/resharper/) offers an easy and
flexible way to transform fields into properties. It's also a factastic
refactoring tool, with hundreds of other features - well worth the $149!

I noticed that MzTools had posted a response too. I've not tried it for
..NET, but the VB version was a life saver.

Tobes

"Paperback Writer" <ne*********@gm ail.com> wrote in message
news:eq******** ********@TK2MSF TNGP15.phx.gbl. ..
Hi Friends,
I have a table with 30 fields and i'd like to know if there is some code
generator that get those fields and transform to properties ???

--
Please, check my theSpoke:
http://www.thespoke.net/MyBlog/dgroh/MyBlog.aspx

Nov 17 '05 #5
Hi Tobes,

MZ-Tools 4.0 is even better than MZ-Tools 3.0 for VB6 and it supports C#,
not only VB.NET.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com

"Tobin Harris" <tobin@_do_not_ spam_tobinharri s.com> escribió en el mensaje
news:42******** *************** @news.zen.co.uk ...
I noticed that MzTools had posted a response too. I've not tried it for
.NET, but the VB version was a life saver.

Tobes

Nov 17 '05 #6
Paperback Writer wrote:
I have a table with 30 fields and i'd like to know if there is some
code generator that get those fields and transform to properties ???


We've had luck using CodeSmith:

http://www.codesmithtools.com/

Although, I thought they used to have a longer trial period than 30 days.

Still, seemed to do what we needed.

Oh, wait, here it is:

http://www.codesmithtools.com/freeware.aspx

--
Reginald Blue
"I have always wished that my computer would be as easy to use as my
telephone. My wish has come true. I no longer know how to use my
telephone."
- Bjarne Stroustrup (originator of C++) [quoted at the 2003
International Conference on Intelligent User Interfaces]
Nov 17 '05 #7
Hi,

I have a code generation tool for .NET developers. It will generate
DataSets, ASP.NET pages, stored procedures and a Data Access layer.

http://www.radsoftware.com.au/codegenerator/

--
Ross Donald
http://www.radsoftware.com.au
"Paperback Writer" <ne*********@gm ail.com> wrote in message
news:eq******** ********@TK2MSF TNGP15.phx.gbl. ..
Hi Friends,
I have a table with 30 fields and i'd like to know if there is some code
generator that get those fields and transform to properties ???

--
Please, check my theSpoke:
http://www.thespoke.net/MyBlog/dgroh/MyBlog.aspx


Nov 17 '05 #8
I think he's talking about a database table.

Resharper Rocks anyway. ;-)

Wiebe

Tobin Harris wrote:
JetBrains Resharper (http://www.jetbrains.com/resharper/) offers an easy and
flexible way to transform fields into properties. It's also a factastic
refactoring tool, with hundreds of other features - well worth the $149!

I noticed that MzTools had posted a response too. I've not tried it for
.NET, but the VB version was a life saver.

Tobes

"Paperback Writer" <ne*********@gm ail.com> wrote in message
news:eq******** ********@TK2MSF TNGP15.phx.gbl. ..
Hi Friends,
I have a table with 30 fields and i'd like to know if there is some code
generator that get those fields and transform to properties ???

--
Please, check my theSpoke:
http://www.thespoke.net/MyBlog/dgroh/MyBlog.aspx


Nov 17 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

51
5295
by: Mudge | last post by:
Please, someone, tell me why OO in PHP is better than procedural.
2
8686
by: Dado | last post by:
Do you know where to find some peace of software/code which I can implemented in my desktop java application which will protect it from illegal using? I imagine something like: buyer can install my software by using request code which will generate on my web. It must be unique for that machine, I suppose. - it doesn't matter if generator can be cracked. I will proud to someone want crack my piece of software.:)) - I think that I was...
0
2418
by: Chris McKeever | last post by:
I am trying to modify the Mailman Python code to stop mapping MIME-types and use the extension of the attachment instead. I am pretty much clueless as to what I need to do here, but I think I have narrowed it down to the Scrubber.py file.. If this seems like a quick step me through, I would be very appreciative, could get you something on your Amazon wish-list (that is me on my knees begging).. From just my basic understanding, it...
8
2388
by: Thomas Stegen | last post by:
I have written a code generator. To be more specific it is a code generator generator. As in a generator that generates code generators. If you run the generator on its own source code you get a code generator generator code generator. If you run it on some other non-generator code you get a code generator generator generator. Watch your bracketisation in all that. The idea is to generate code which generate code which looks exactly like...
41
2539
by: Petr Jakes | last post by:
Hello, I am trying to study/understand OOP principles using Python. I have found following code http://tinyurl.com/a4zkn about FSM (finite state machine) on this list, which looks quite useful for my purposes. As this code was posted long time ago (November 1998) I would like to ask if the principles used in this code are still valid in the "modern" Python and if/how it can be improved (revrited) using futures of current version of...
3
2066
by: joshblair | last post by:
Hello, Has anyone ever seen or created such a code generator? I'm looking for a sample of a code generator that will generate code (preferably one that uses C# and the XMLTextWriter) to create an XML document structure based on an XML file as input. I have to build some classes that allow me to generate some very complex/large/nasty XML documents for use in B2B exchange of data (like
29
2584
by: Ancient_Hacker | last post by:
A while back I had to recompile some old code, originally written by a really good programmer, but one prone to use every trick in the book, and then some. There was a statement, something like this: Result = ( Mode == 2 ? TwoWayFunc : FourWayFunc ) ( Param1, Param2, Param3 );
4
1435
by: VMI | last post by:
In the next few weeks, we'll be discussing what standards will be used for our web development, and one of the suggestions was to use a code generator (in our case, the first version of LLBLGen). Personally, I don't like code generators. I inherited two web applications that use LLBLGen, and they are just impossible to debug. It generates so many classes and so much code that isn't actually used. In my case, I'm maintaining web app with...
3
1800
by: Sander Tekelenburg | last post by:
Situation: I store news articles as individual PHP files. Each file contains HTML and now and then some embedded PHP snippets. Serving those news articles on the Web works fine, through include(). But I want to also serve them through RSS, and found that in that case the PHP source code is served -- it's not being evaluated. So it seems obvious that I need to first evaluate those PHP snippets, store the result in a variable, and use...
5
1643
by: james | last post by:
To give an example of what I mean I have already altered the code: def output_random_lesson_of_type(self, type=None): """Output a lesson of a specific type. If no type is passed in then output any type.""" output_lessons = self.lesson_data if type: filtered_lessons = filter(lambda x: x == type, self.lesson_data) if filtered_lessons:
0
9689
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9550
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10495
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10269
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10248
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10032
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7573
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5597
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4148
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.