Questions tagged [auto-generate]

The automation of the creation of classes, files, documentation, or anything else for which manual creation is costly.

See also

654 questions
0
votes
2 answers

WCF client proxy keep alive?

It there any disadvantage of creating a wcf client in code everytime a call is needed. currently i have a static class that creates a client and reuses it for a period of time (couple of minutes before the wcf service times out) i'm having problems…
0
votes
1 answer

auto-generate my xml through out the build process

Let's say I have a serialized class (members with attribtues and everything). Is there a way I can auto-generate it's correlative XML within the build? this will be a required file to be inserted to the msi... Thanks
user1025852
  • 2,684
  • 11
  • 36
  • 58
0
votes
1 answer

Incremental alphanumeric Primary Key

Hello I'd like to have an incremental alphanumeric key (primary key) in one of my tables. I'd like it to be BR10000, BR10001, BR10002, and so on. Any ideas? I've made some researches on google, but I find it very hard to understand for a beginner…
user1410081
0
votes
1 answer

PHP + MySQL - create ID based on current values in database

Google failed me, so I seek expert-help :) Let's say I have a database consisting of "ID" and "Name". Currently in this database I have these records: 001 - John 002 - Eric 003 - Kathy To generate the next ID i used COUNT in mysql and plussed 1 in…
dbso
  • 636
  • 1
  • 5
  • 14
0
votes
1 answer

PHP - How can we display generated numbers for related rows if using class function

How can i generate a numbers to the table that has been fetch a data from database, here are my situation: //Action File Calling a data $loads = array(); $loadno = $_GET['eig']; $result = mysql_query("SELECT * FROM task_load WHERE load_no='$loadno'…
mf.zull
  • 41
  • 5
0
votes
2 answers

Create entity and return ID

Using Open JPA 2.0, and database is DB2 9.7. I would like to like to create an entity which includes ID which is Primary Key, and auto generated Identity column and after creating the entity I need to display the ID generated. For this after…
ad-inf
  • 1,520
  • 4
  • 30
  • 53
0
votes
1 answer

Autogenerating attachment of content from contact form and sending with email

I would like to create a contact form, where the email is sent along with an auto-generated attachment file (.txt). The attachment should include all the values of the input fields present in the contact form (whether they are empty or not). Can…
Kokos Koka
  • 93
  • 3
  • 12
0
votes
1 answer

Entity Framework - class not found

I have a problem regarding a Silverlight application that uses ADO Entity Framework 4.0. The application can't find one class auto-generated by entity framework, while the other classes auto-generated it finds.
Danilo
  • 11
  • 1
0
votes
1 answer

Netbeans generated code settings

I was wondering where can I change the way Netbeans generates code. For example, I want the opening bracket to be on a new line. I've been looking in the [Tools] -> [Options] menu but I didn't find anything.
user1550876
  • 109
  • 1
  • 1
  • 10
0
votes
1 answer

FileUpload in Autogenerate Form postback

I have a problem. I have a Dynamic form created in asp.net. Generally it has fileupload companent . In This time page postback is fire than form generated again and selected file is disappear. My question is how to hold this file in memory? Am I…
0
votes
0 answers

logs from entity framework generation

I'm using EF to communicate with my database. I made a function import mapping so I can call a Stored Procedure. By on run time I get a error saying "Method not found" referring the method that was created to invoke the SP. I'm assuming that is an…
jcintra
  • 747
  • 1
  • 7
  • 8
0
votes
5 answers

What is the point of auto generate instvar?

Since C# 3.0 there is the new syntax to autogenerate the instance variable from a propertie: public string Foo { get; set; } But there is no way to access the underlying backing field. So I don't really see the point of it because declaring the…
mathk
  • 7,973
  • 6
  • 45
  • 74
0
votes
2 answers

Want to display an auto generated id in a custom module of SugarCRM

I am using Sugar Enterprise 6.4.0 and want to display a uneditable field in a custom module Edit and Detail view. This id need to be generated automatcially and need to be displayed in the interface when user click to create a new record in the…
Sheikh Rahat Ali
  • 1,293
  • 8
  • 37
  • 61
0
votes
1 answer

Detached objects in standalone Java SE Client: Netbeans uses autogenerated DTOs?

I have a problem: I am working at a Java EE project, the GUI is writting by other persons. I cretaed the database I wrote a Java SE application (with Netbeans 7.1) which contains the entities (I let Netbeans generate these from database and…
0
votes
1 answer

Changing NetBeans auto-generated code

NetBeans has some great features in it like auto-generating code. However there are some things missing which I would like to change. One of my practises is to add comments to the generated code telling me what it is. For example say that I am…
Tomkarho
  • 1,789
  • 3
  • 19
  • 25