Click here to Skip to main content
15,892,005 members
Everything / Code generation

Code generation

code-generation

Great Reads

by Evoluteur
A generic Web User Interface for CRUD applications generating all screens at run-time based on external metadata. It comes with sample applications for address book, memo pad, to do list, restaurants list, wine cellar, and database structure documentation that are easily customizable.
by honey the codewitch
Embed fast streaming C# code to match text based on inputted regular expressions
by honey the codewitch
An LL(1) pull parser and generator that thinks it's an LL(k) parser - with a rich, simple and beautiful EBNF syntax
by honey the codewitch
Make your projects far more powerful with some foundational code templating techniques

Latest Articles

by honey the codewitch
Easily convert identifiers from one casing style to another with this simple to use class
by honey the codewitch
Easily add lexers to your project with this simple drop in NuGet package and a few annotations
by honey the codewitch
Generate fast, easy to use lexers/scanners in major .NET languages
by honey the codewitch
Easily embed image data into your code

All Articles

Sort by Score

Code generation 

11 Jun 2010 by Evoluteur
A generic Web User Interface for CRUD applications generating all screens at run-time based on external metadata. It comes with sample applications for address book, memo pad, to do list, restaurants list, wine cellar, and database structure documentation that are easily customizable.
10 Nov 2021 by honey the codewitch
Embed fast streaming C# code to match text based on inputted regular expressions
14 May 2019 by honey the codewitch
An LL(1) pull parser and generator that thinks it's an LL(k) parser - with a rich, simple and beautiful EBNF syntax
28 Oct 2021 by honey the codewitch
Make your projects far more powerful with some foundational code templating techniques
11 Dec 2019 by honey the codewitch
If you use the CodeDOM, here's an indispensable package to make it awesome.
3 Feb 2020 by honey the codewitch
A Pike virtual machine and optimizing compiler for regular expressions using an NFA engine
21 Feb 2016 by Abdullah Al-Muzahid
This is a RAD tool which can be used to generate codes for CRUD operation in ASP.NET and C# automatically based on Database Model Diagram.
22 Feb 2020 by honey the codewitch
Glory can parse virtually anything, even natural language. Add powerful parsers to your projects. Parse languages like C# or incorporate human language parsing with your AI code.
22 Jun 2012 by Nicolas Dorier
Leverage Visual studio Web Test Framework for your crawling needs...
8 Nov 2021 by honey the codewitch
Deep dive some advanced source generation in a real world application
24 Nov 2015 by OriginalGriff
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.Try it yourself, you may find it...
26 Jul 2019 by honey the codewitch
A simple helper class to aid in code generation
4 Feb 2024 by honey the codewitch
Easily add lexers to your project with this simple drop in NuGet package and a few annotations
25 Dec 2015 by Alan N
Isn't this stuff so damned awkward! You will need a CodeTypeReferenceExpression to get the enum type and a CodeFieldReferenceExpression to get a value.For example (in C#, sorry about that)private CodeMemberMethod CreateGetEnumMethod() { // To create the following method // public...
31 Jan 2020 by honey the codewitch
Add fast scanners/tokenizers to your C# project
6 Apr 2012 by Henning Dieterichs
This tip shows how to change a WSDL-file to avoid the SFxCannotImportAsParameters_DifferentWrapperName-Exception, which is thrown when importing the WSDL-file in Visual Studio
18 Apr 2012 by Clifford Nelson
If I understand what you want to do, I do not beleive it is possible. What you want to do is similar to jagged arrays: http://msdn.microsoft.com/en-us/library/2s05feca.aspx[^]
18 Apr 2012 by Jackie00100
I made a few addition to my Arrays and added this code in the codegenerator and it works just fine now :) Arrays arr = (Arrays)value; deliveredType = arr.array.GetType(); Type myType = arr.array.GetType(); Type[] types = new...
6 Dec 2012 by Deenuji
Actually i'm using color extender to pick the color in asp.net...but while i'm picking the color it generate the hex decimal values....but i need only rgb values...Pls any one guide me....
6 Dec 2012 by IpsitaMishra
Try this I hope It will help youHow to convert Hexadecimal Color to RGB color (24 Bit)[^].keep smiling :):):) haapy coding:)
7 Dec 2012 by Zafar Sultan
Have a look at this link:http://snipplr.com/view/13358/[^]
7 Dec 2012 by Richard MacCutchan
Why have you posted this question when you have already been given the answer in the C# forum? Please post in one place only, and do not spam the forums.
7 Dec 2012 by Deenuji
Solution:Write this coding in button or whatever... System.Drawing.Color MyColor = System.Drawing.Color.FromArgb(val);
14 Feb 2013 by Espen Harlinn
It's possible that you would be interested in the Stab[^] programming language:class C { // Manually implemented property private int myProperty; public int MyProperty { get { return myProperty; } set { ...
23 Feb 2015 by Sradhanjali Behera
Here everything goes fine but error is when i am keeping the below text field data doesnot save into db(selecting the radio button field).but if i am removing the text field.everything goes fine.two type of field is present.(radio,text).i think which may cause problem.plz suggest me. ...
9 Jun 2015 by KumarAbhishekJaiswal
HelloI get this error while building my program from Matlab CoderC:\HighTec\TriCore\bin\rm.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0gmake: *** [clean] Error 1Please help. I have tried all possible solution.I cant find rebase.exe so please do not suggest...
10 Aug 2015 by Duncan Edwards Jones
Utility class for adding XML comment to auto-generated code
16 Aug 2015 by Duncan Edwards Jones
A quick-and-dirty function to display the VB.NET code resultant from any given code compile unit
11 Oct 2015 by Tony Hallett
I am using the visual studio project type - Stand-Alone Code Analysis Tool. I am using the following code but the ToString() is showing an unexpected result.static void Main(string[] args) { var classDoc = @"public class SomeClass{ private...
13 Oct 2015 by Member 11769907
I have a page to fill with some mandatory fields but when I'm clicking on "back" buton,it givig errors to fill that mandatory fills
13 Oct 2015 by Member 12003400
Create a validation group. and Give that group name to each validations and also to your save button. So it will execute only when you click save button.
13 Oct 2015 by Krunal Rohit
Set the CausesValidation property to false.Refer this:http://weblogs.asp.net/scottgu/421647[^]-KR
15 Oct 2015 by ZurdoDev
No, we cannot. We don't know what they are or what you are talking ab out.However, we could guess at an alternate. How about this?PCGM425AD40E50722
25 Dec 2015 by Duncan Edwards Jones
I want to create a code generation routine to create a return statement that returns a particular enumerated type e.g. Return EvaluationResult.IncludeWhat I have so far is...Private Shared Function ToReturnStatement(ByVal valueToReturn As IdentityGroupClassification) As...
29 Mar 2016 by Giancarlo Rhodes
ORM objects and basic CRUD operation procedures are first phase tasks that come after establishing a first version of the database. This java-based code generation tool builds those classes and stored procedures.
13 Jul 2016 by Sean Donnahoe
In VBA there are 2 drop downs that allow you to quickly write subs, by choosing an object and a related procedure. (i.e. 'button & click' or 'userform & initialize')I could have sworn I saw this in Visual Studio 2015, but I can't find out how to turn it back on.Can anyone help me with...
13 Jul 2016 by OriginalGriff
If you mean "automatically add a handler to an event and insert a blank handler template method" then it's simple:Highlight the control or form.Either1) double click the control (to add the default event - for a Button that's Click, for a Form that's Load) Or 2) Look at the properties...
13 Jul 2016 by Dave Kreskowiak
Tools -> Options -> Text Editor -> Basic -> General. You're looking for the checkbox labeled "Navigation Bar".
5 Aug 2019 by Md Athaulla
I'm running the dotnet code generator commands from C# (using Process class), I'm able to create project using dotnet new mvc and I'm also able to add nuget packages. But I'm not able to scaffold when application is running. Scaffold happens only when I stop solution. Process p =...
5 Aug 2019 by #realJSOP
You can't scaffold while the app is running, because it would have to modify the project in order to complete said scaffolding.
29 Aug 2022 by honey the codewitch
I wrote a graphics library for IoT - htcw_gfx and I'm thinking of writing some sort of WYSIWYG UI widget editor that generates code for a UI such that you can visually craft your user interface and it produces the code for you sort of like...
26 Aug 2022 by KarstenK
Maintainable code ist most important goal, esp when it is a longer running project. It is normal that building the model is a lot of work. It is best practice to use some libraries which avoides a lot of common pitfalls and basic testing and...
29 Aug 2022 by Greg Utas
It sounds like your analysis has more or less ruled out (A), in which case you're stuck with (B). Some things that could help make (A) possible are - a simple object model that only supports a limited number of widget types - using field widths...
6 Feb 2024 by honey the codewitch
Easily convert identifiers from one casing style to another with this simple to use class
21 Mar 2017 by Dave Clemmer
Mo+ is the first technology that fully supports model oriented development, allowing software developers to powerfully scale the work they already do.
27 Nov 2019 by honey the codewitch
Build a full featured tokenizer generator in C#
19 Jul 2017 by malzbiertrinker
Anytime you are developing a project using Entity Framework, you need to create a DataLayer class accessing each object within your model with different methods. This generator will do this stuff for you.
19 Jan 2020 by honey the codewitch
A completely programmable lexer/tokenizer/scanner generator in C# using a Pike Virtual Machine
20 Nov 2023 by honey the codewitch
Generate fast, easy to use lexers/scanners in major .NET languages
21 Feb 2011 by Christopher R Davis
Use model driven development to keep your API and database in sync.
9 Jan 2020 by honey the codewitch
Generate powerful, maintainable parsers in most major .NET languages using a friendly grammar format
7 Aug 2020 by Rick Drizin
How to run C# Scripts (CSX scripts), load third-party libraries, and generate code directly from inside Visual Studio
29 Jun 2010 by ShlomiAtia
The code writer allows to transparently write code for C# and Java, for applications like serialization, equality, etc.
18 Jun 2012 by Petr Ivankov
Applications of abstract math theories to practice
8 Mar 2017 by Dave Clemmer
Considering the various qualities that a model oriented programming language should have for effective model oriented development.
8 May 2021 by Ryan Scott White
A simple drop-in function that provides T4 like template based text generation.
5 Jul 2022 by honey the codewitch
Easily embed image data into your code
26 Jun 2010 by Nicolas Dorier
Practical use case of Genuilder.Extensibility: Strongly typed AppSettings.
19 Feb 2011 by Christopher R Davis
How to use the nHydrate ADO.NET generator and keep your database in sync.
9 Dec 2012 by MarkChimes2
A small utility that generates C# code for each of the layers in an nTiered system.
8 Jun 2010 by Evoluteur
Looking at the possibility of using CRUD applications to manage other CRUD applications inside a web browser and without any hand-coding. Also, presenting a step wizard deriving the database structure from the UI rather than the opposite.
30 Sep 2014 by Dave Clemmer
Applying a day's worth of model oriented work to greatly improve the quality and quantity of unit tests for the nopCommerce open source e-commerce solution.
24 May 2012 by rspercy65
This is a remake of Pramod Kumar Sing's 2002 API Viewer.
18 Apr 2012 by Jackie00100
Hi all im working on a C# compiler and i've reached this far that i have to make arrays. now i've tried opcodes.newarr and that works somewhat fine but my problem is that i would like to emit a array at type [,] and not[][] and have there by moved on to opcodes.newobj but somehow i cant make it...
23 Feb 2022 by matalan44
How to generate code in Java
6 Jan 2020 by honey the codewitch
Using Parsley to parse a C# subset into the CodeDOM
14 Feb 2013 by ShacharK
Hey everybody,Lately, I've been trying to do something which I find very cool to improve my project's productivity (at least I find it cool... ;) ).Anyway, What I'm trying to do is to regenerate my server side's protocol classes, which is written in C# in my application's client...
21 Mar 2013 by Napster25
HiI need a Codegenerator that gets a database and generate full asp.net website like CodeSmith Codegenerator .netTiers.I think .netTiers can't generate user accounts and authentication system. I need a generator that also:-Makes pages for signup,login,forgot password.-Generates dynamic...
21 Mar 2013 by ibrahim_ragab
you can use WebMatix from Microsofthttp://www.microsoft.com/web/webmatrix/[^]
1 Mar 2015 by Member 11488706
Your company is building cell-phone towers along a straight railway line at points p[0], p[1], …, p[n-1]. The company must construct temporary houses for workers, and wants to ensure two conditions: (i) from every point p[i], the distance to the nearest house should be at most k; and (ii) the...
6 Dec 2012 by codeninja-C#
string hex = "0x333366";int r = Convert.ToInt32(hex.Substring(2,2),16);int g = Convert.ToInt32(hex.Substring(4,2),16);int p = Convert.ToInt32(hex.Substring(6,2),16);--SJ
28 Feb 2015 by OriginalGriff
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.Try it yourself, you may find it...