code-generation

Advantage Database ORM Tool or Code Generator Tool

Does anyone know if there are any ORM tools or Code Generation tools that work against an Advantage Database? ...

Generating a SWING/Gui from Hibernate

Hi All, is there any tool that would read a something like a hibernate mapping file and would then create some stubs of java code for a java Swing client ? Thanks, ...

What is the utility of the attribute GeneratedCodeAttribute in C #?

I generated some of my C# code with an external tool. Each generated class has an attribute GeneratedCodeAttribute. Why is my generator creating this attribute? ...

iron speed designer 5 enterprise code customization wizard does not work keep on rebuilding the application

Hello, I know someone who works on Iron speed designer version 5 and I was looking to help him with an issue he is facing with a web application in asp.net on .net 2.0 platform generated using the iron speed designer. We built a page and customized it by adding a asp.net checkbox and send email coding. After we did this now, the code ...

Is there any free, open source php CMS\framework for described case?

I want that cms\framework to create me tables like "Users" "Cameras" and so on and declare classes and simple default methods for them (like paged sql relults and so on). I mean I say to it: I want Users to have ID, SpecialNumber and Name Flilds. and I want to get from it class for table generation (to call it once) and class containing...

Are there any frameworks or utilities (in the .NET space) for automatically generating data transfer objects from business objects

I'm looking for the best approach for generating data transfer objects from business objects (the type definition, not mapping the data) using a set of conventions (e.g. all public properties), and possibly configurable to determine how deep to go. I realize that this may not be possible or even desirable for many cases where the dto's ...

What to test when writing Unit Tests?

I want to begin unit testing our application, because I believe that this is the first step to developing a good relationship with testing and will allow me to branch into other forms of testing, most interesting BDD with Cucumber. We currently generate all of our Base classes using Codesmith which are based entirely on the tables in a...

Is there an easy way to generate code from a text file?

I am currently working on a project that is accessing a piece of hardware using tons of hard coded memory locations. These locations can change based upon the electrical engineer's whim, so I'm looking to generate code from the engineer's memory map. Let's say the map is a simple text file like: Name, Type, Address, Description Foo, i...

How do I generate an array from a string representation of that array?

I want to generate the array $result_array. There is no error at the page, but not works! that not works ! //BOF: Result Array $result_array = ''; $result_array .= '"messages" => "' . $errors .'",'; $result_array .= '"this_addr_type" => "' . (int)$_REQUEST['edit'] .'",'; if (ACCOUNT_GENDER == 'true') { $result_array .= '"gender_mal...

What version control tool can generate this header

This is from a sql script. What tool can generate this? Thanks --USE [MY_TABLE] GO /****** Object: StoredProcedure [dbo].[adminIncExp] Script Date: 03/05/2010 09:14:12 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: <Author,,Name> -- Create date: <...

CakePHP Bake association problem

I have only two tables in my database with a one-to-many relationship between them (user hasMany messages) and am trying to get basic CRUD functionality going. Bake detects the associations correctly and specifies them correctly inside the model classes, but in controllers and views it looks like Cake doesn't know anything about those as...

Given a type instance, how to get generic type name in C#?

Given a generic type, including List<string> Nullable<Int32> how do i get a generic name for C#? var t = typeof(Nullable<DateTime>); var s = t.GetGenericTypeDefinition().Name + "<" + t.GetGenericArguments()[0].Name + ">"; This yields "Nullable`1<DateTime>" , but i need "Nullable<DateTime>" . ...

WCF code generation for large/complex schema (HR-XML/OAGIS) - is there an alternative?

Hello, and thank you for reading. I am implementing a WCF Service based on a predefined specification (HR-XML 3.0). As such, I am starting with the schema, and working my way back to code. There are a number of large Schema documents (which import yet more Schema documents) related to my implementation, provided by this specification. ...

generate EF model by System.Diagnostics.Process

Hello, after read this article i tried generate EF model by System.Diagnostics.Process: Process myProcess = new Process(); var cs = "Data Source=.\\SQLEXPRESS; Initial Catalog=uqs; Integrated Security=SSPI"; myProcess.StartInfo.FileName = @"C:\Windows\Microsoft.NET\Framework\v3.5\EdmGen.exe"; myProcess.StartInfo.Arguments = ...

Generating code -- is there an easy way to get a proper string representation of nullable type?

So I'm building an application that is going to do a ton of code generation with both C# and VB output (depending on project settings). I've got a CodeTemplateEngine, with two derived classes VBTemplateEngine and CSharpTemplateEngine. This question regards creating the property signatures based on columns in a database table. Using the ...

Generate POCO classes in different project to the project with Entity Framework model

I'm trying to use the Repository Pattern with EF4 using VS2010. To this end I am using POCO code generation by right clicking on the entity model designer and clicking Add code generation item. I then select the POCO template and get my classes. What I would like to be able to do is have my solution structured into separate projects fo...

Where To find online PHP/CSS Syntax Generator ?

i would like to learn how to make PHP/CSS syntax generator. i assume this going to be fun and all. Is there any open source PHP/CSS syntax generator ? Or at least, where the best syntax generator available in internet based on your experience ? ...

Generate a Version.java file in Maven

I have a Java project that I build using an Ant script. I am trying to convert the project to Maven. One of the tasks generates a Java source file called Version.java that contains a static String representation of the compilation timestamp, as follows: package com.foo.bar; public final class Version { public static String VERSION="10...

Do you know an XML binding toolkit that is able to process XSD using keyref?

Given an XML schema (XSD) and arbitrarily many sample files (XML) based on that schema, I need to create an XML parser/binder to load those files. The parser must be available from within a C++ program. All open source or commercial tools I looked at do not support keyrefs, which are heavily used in the XSD at hand. Do you know any too...

Which tool is more usefull for code generate.

i want to generate code for .net n-tier application. or 3-tier application. so which tool is more useful. that will create all code. ...