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
4
votes
1 answer

Is there an automated way to generate NuGet package ready for publishing to nuget.org from VS project

When I have a .csproj class library project, it already has some NuGet Dependencies and output files. (At least ProjectName.dll). I've learned that I need to create a .nuspec file (as one of the steps) in order to publish the NuGet Package to a…
Maxim V. Pavlov
  • 10,303
  • 17
  • 74
  • 174
4
votes
1 answer

How to document a type in enunciate?

How to get the description field on a type populated in the generated enunciate documentation? We are generating classes from jaxb using jaxb2-maven-plugin. No matter how I document a element either using the
Peter
  • 5,556
  • 3
  • 23
  • 38
4
votes
3 answers

Customise the display of a auto-generated class

I have a DB and I created classes to access/manage it using SQLMetal. Now, I use LINQ to SQL, and I want to display the result of queries in a data grid view. when I do that, the columns are named after my columns in the DB table, and all the…
elyashiv
  • 3,623
  • 2
  • 29
  • 52
4
votes
2 answers

Visual Studio keeps deleting code in form.designers

I'm making a winform application. I'm trying to add a keydown event to a combo box so I prepared the event implementation and then I added inside the form.designers document the line: this.cmboxSearchPath.KeyDown += cmboxSearchPath_KeyDown; for…
CodeMonkey
  • 11,196
  • 30
  • 112
  • 203
4
votes
2 answers

Generate Unique Long ID for a view in MySql

I have a view over three tables. It has 6 columns as follows: ID | NAME | PRINCIPAL_ID | DESCRIPTION | GROUP_ID | TYPE As I'm using hibernate to retrieve data from database, I had to put the ID column in this view. The problem is, I cannot generate…
Matin Kh
  • 5,192
  • 6
  • 53
  • 77
4
votes
1 answer

How do I generate a formatted Word report from multi-row/column Excel spreadsheet

I'm trying to auto-build a formatted Word report from an Excel template used by multiple teams. For example, if i have the following Excel structure: ......A.... |.....B.... |....C... 1 Name | Height | Weight 2 Jason | 74 | 170 3 Greg | 70 |…
user1766409
  • 41
  • 1
  • 3
4
votes
6 answers

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…
Miral
  • 5,968
  • 16
  • 57
  • 85
4
votes
1 answer

auto generated key in Riak via Java client

Riak supports auto generated keys when storing an object: http://wiki.basho.com/Basic-Riak-API-Operations.html: Store a new object and assign random key # If your application would rather leave key-generation up to Riak, issue a POST request to the…
o'mac
  • 99
  • 5
4
votes
2 answers

NetBeans auto-generated comments, one word per line: really?

When I add components or anything that automatically generates comments in NetBeans (7.1.2), the comments come out with one word per line. Like this: /* * If * Nimbus * (introduced * in * Java * SE * 6) * is * not *…
Phil Bair
  • 241
  • 2
  • 4
3
votes
3 answers

How to create a custom tool to generate code in Visual Studio 2010?

I simply want to generate a class with attributes that comes from a Database table. If I have a Database table like the following: +-------------------+ | Id | Name | +----+--------------+ | 1 + foo | | 2 + hello.world | | 3 +…
Rubens Mariuzzo
  • 28,358
  • 27
  • 121
  • 148
3
votes
1 answer

Subsonic transformations failing in T4 template due to same object name across different schemas

i have core T4 templates in subsonic to create my DAL. Connection strings which i have users which have selective access to different schemas in the database. problems arise when i try to generate my DAL partial classes for a user which has access…
nesh_s
  • 399
  • 4
  • 19
3
votes
2 answers

How can I generate a list of words that phonetically sound alike given one input word?

When you misspell a word in Google ("appples" for example), it comes up with the now familiar, "Did you mean: apples" suggestion for you. Excluding Google's ability to guess your intentions based on relevance of search results, how can I develop a…
CheeseConQueso
  • 5,831
  • 29
  • 93
  • 126
3
votes
1 answer

Suppress results from generated code

I have a project created with "Suppress results from generated code" checked in its properties. When I add a service reference, the proxy class (reference.cs) that is autogenerated adds the following…
Adolfo
3
votes
2 answers

php progressive map generation

Hello I've been trying for couple of days to write a script to generate a progressive map using PHP. What I'm trying to achieve but with no success would be something like this: In short I have a "node" defined as 5,6 on xy ( as an example ) then…
Bogdan
  • 693
  • 7
  • 26
3
votes
4 answers

Initializing an sql query as a dataclass

The goal is to achieve the selected columns in SQL based on the some manual classification of the fields, e.g. from dataclasses import dataclass @dataclass class Q: fruits = ('taste', 'color', 'shine') vege = ('is_green', 'color',…
alvas
  • 115,346
  • 109
  • 446
  • 738