auto-generate

Change Order of columns

I am using gridView. I have 4 auto generated columns and 1 generated by my self. Now the column which i have generated is displayed first and then the auto generated columns. I want to display auto generated columns first then my generated column. ...

Switching data access strategy far into a project?

In a project we have implemented the data access layer (DAL) with a visual designer that auto-generates a lot of code (in our case: strong-typed DataSets and DataSetTableAdapters in .NET). However, using source control I find it troublesome to edit and add new things to the DAL. We have started coding new data access by manually writi...

ASP.net not generating javascript for some User Agents

***************Edit 2***************** I figured out the problem... But I don't like the implications. I was testing our iPhone targeted mobile application earlier and using a plugin to mask Firefox's User Agent String as an iPhone. .Net was infact NOT generating the required code for post backs based on that piece of information alone...

How can I force WCF to put a type into the Client Proxy if it is not Used in the Service Contract?

I have declared an enum in my server code, and would like my client code to be able to use it. Unfortunately, it's not being auto-generated for some reson. My enum is declared similar to the following example: [DataContract] public enum MyEnum { [EnumMember] First = 1, [EnumMember] Second = 2 } It's not declared inside...

Send java object to a rest WebService

Hi, I'm searching a nice way to send a java object to my rest web service. It's possible or not ? For sample I wan't to send an "User" Object to my rest : public Class User{ private String name; private String surname; public getName(){ return name; } public setName(String name){ [...] } It's possi...

sequential autogenerated Id with help of linq

I have a class Booking public class Booking { public int Id { get; set; } public string From { get; set; } public string To { get; set; } } I create a List bookings with the help of linq and I want some mechanism with which I want to autogenerate the 'Id' property to increment by 1. I.e. if the List ...

Adobe Flex Builder WSDL classes autogenerator generates weird files

Adobe Flex Builder WSDL classes autogenerator generates wierd files. For example: http://ws.cdyne.com/WeatherWS/Weather.asmx?wsdl After importing it generates these files: ArrayOfForecast.as ArrayOfWeatherDescription.as ArrayOfWeatherDescription0.as BaseWeather.as BaseWeatherSchema.as Forecast.as ForecastReturn.as ForecastReturn0.as...

Specify Web Service Reference Auto-Generated Entity base class

Question: Is it possible to (automatically) change the base class of auto-generated domain objects created through the Visual Studio 'Add Web Reference' functionality, without manually modifying References.cs? Background: When we add a reference to a web service (via the Visual Studio 'Add Web Reference' functionality), a number of clas...

New to Linq - 2008 won't auto generate classes - n00b alert..

Hello, I'm new to Linq and Visual web developer 2008 Express. I have read some posts here and Scott Guthrie's on setting up Linq, but I'm a little stuck because the classes aren't auto-generating as I thought they would. I have setup a database with a simple table (with the Primary Key as the ID, and it is set to auto-increment) plus ...

3rd Party Server -> 3rd Party API (unmanaged c++) -> Managed Wrapper -> Database : Can Linq help me simplify my code?

I maintain a fairly complex infrastructure consisting of a number of setups like the following: 3rd party application server with its built-in database 3rd party unmanaged c++ API library which exposes methods to query and/or receive updates from the server; also contains data structure definitions My managed wrapper for the library; e...

Intellij generate javadoc for methods and classes

Hi. Is it possible to set up Intellij to generate javadoc for methods and classes, automatically, with @author and @since date ? I had this feature in Eclipse. I know, that files have templates and also i can manually semi-automatically add javadoc to selected method/class. But i want the generation to be automatic for every generated ...

How to reorder input field

I haved generated simple CRUD application from seam-gen using seam generate-ui command, but the edit page for insert data into database was genated and orderd by name. For example if entity class contain name,lastname and age. Seam-gen will generate and ordered field list to age,lastname, and name (order by name). The question is how d...

Is there a lib to make html easier in C#/.NET/ASP.NET

I remember once seeing a project a guy did where he write something like this in some language with json like strings which created pretty good html. Is there something like it i can use for C# or .NET radio-box{ AName, [First|Second|Value:9|ItsLikeAnEnum]}, TextBox[user, password], Checkbox[RememberMe:true, blah]} //blah is default wh...

Ibator didn't generate Oracle varchar2 field

I have table APP_REQ_APPROVE_COMPARE with following fields: "ID" NUMBER NOT NULL ENABLE, "TRACK_NO" VARCHAR2(20 BYTE) NOT NULL ENABLE, "REQ_DATE" DATE NOT NULL ENABLE, "OFFCODE" CHAR(6 BYTE) NOT NULL ENABLE, "COMPARE_CASE_ID" NUMBER NOT NULL ENABLE, "VEHICLE_NAME" VARCHAR2(100 BYTE), "ENGINE_NO" ...

Does a programmer's "document template" with tags exist for Windows?

I was wondering (if possible) if there was a program/tool/utility that when I create a new file and provide it with an extension that it creates the appropriate tags automatically? For example, a new file I create called index.php would have the appropriate tags auto-generated inside: <?php ?> I hope you get the idea. Any infor...

Does Rails need database-level constraints?

I have the same problem as in the following post. So I am wondering, why doesn't Rails support generating foreign keys by default? Isn't it necessary? Or are we supposed to do it manually? ...

Is Doctrine able to detect n-m relations in a db using generateModelsFromDb?

When using generateModelsFromDb to generate the models Doctrine makes one to many relations between the relation table and the base tables instead of generating a nm-relation between the base tables themselves. Is there any way to let generateModelsFromDb detect the n-m relation? ...

Why I sould not develop an opensource runtime UI Autogeneration from domain objects?

I'm using for my projects a rather complete UI auto-generation tool from database entities for windows forms and asp.net I wrote. Now I've built a working prototype UI auto-generation tool from domain objects. Right now it is in early stage of development and by reflection it generates user interface for creating and updating domain obje...

ASP.NET auto-generate aspx.designer.cs turn off?

Hey all, As I'm working on a asp.net/c# project, I'm confronted with the foobar.aspx.designer.cs that auto generates it's content. eg, when I'm changing the code/designer, the designer.cs automatically updates it's content. As I'm bit of a control-dude, I'd like to maintain the code myself. I'm not happy with the overkill of comments I...

Sparx Enterprise Architect conversion (from source to UML)

I need to make a UML class diagram for a project. I used Sparx Enterprise Architect in the past to generate source code from a diagram so I'm using that. The project is complete so all of the code is done and I don't really want to write all the classes / functions manually, so I was trying to generate the diagram from the source code ...