ID

Uploaded

Status

Description

Work Items

Action

3948
by mbp
Sep 22, 2009
7:17 AM

Being evaluated

GeneratorStudio also generates ActiveRecords for your views. However, a view does not define any primary keys, and thus NHibernate will fail on runtime saying that no primary key is defined.

This patch supplies a fix (I'm not sure if it can be done better in another way), which just selects a column with an appropriate type and marks it as primary key.

Download

3943
by mbp
Sep 21, 2009
5:58 PM

Applied

I found a problem with NHibernate mapping when you had nchar(x) or char(x) columns in your database. GeneratorStudio would wrongly say that the type is "AnsiChar", but this only applies when x == 1.


Applied Oct 19, 2009: Fix char/ nchar error on lengths longer that 1.

Download

3944
by mbp
Sep 21, 2009
6:05 PM

Applied

I found a problem where if you had a column which used a reserved SQL keyword. NHibernate queries on the table would fail because the keyword was not properly escaped. This patch adds the property IsReserved to Column and modifies the template to add the correct backticks.


Applied Oct 19, 2009: Implement reserved words filtering.

Download

3834
by mbp
Sep 11, 2009
8:37 PM

Applied

I added simple support for T-SQL descriptions, such that descriptions entered in the database will appear in templates as comments.

I hope you will consider this as a standard feature in GeneratorStudio.


Applied Sep 21, 2009: Fixed logic bug.

Download

3836
by mbp
Sep 11, 2009
10:34 PM

Applied

When using GeneratorStudio on a large complex database, I found a problem related to foreignkeys.

If a table had many child tables with references to its id column, the code would accidently try to access a referenced column on the wrong table.

The fix was to reference the correct foreign key. Patch attached.


Applied Sep 21, 2009: Fixed logic bug.

Download

3838
by mbp
Sep 11, 2009
11:37 PM

Applied

When you have multiple columns in a table which are foreign keys to the same foreign table, the default ActiveRecord template would create properties with similar names, which caused it to not compile.

Attached is a patch with a fix.


Applied Sep 21, 2009: Fixed logic bug.

Download

3835
by mbp
Sep 11, 2009
9:12 PM

Applied

I added functionality to generate classes from commandline.

This is because I think the UI should be mainly for configuration and if the configuration is already done, we want to generate the classes from a batch job.

Syntax is: DarkSide.GeneratorStudio.UI.exe [dgsfile] generate

For this to work, I also had to add support for serialization on the templates.


Applied Sep 21, 2009: Fixed logic bug.

Download

3837
by mbp
Sep 11, 2009
11:12 PM

Applied

If a table column had the "Xml" datatype (MS SQL 2005/2008), the template merge would fail with an exception. This fixes it.


Applied Sep 21, 2009: Fixed logic bug.

Download

3839
by mbp
Sep 12, 2009
1:31 AM

Applied

Nullable uniqueidentifier columns were generated with the wrong type. This patch adds the necessary nullable.


Applied Sep 21, 2009: Fixed logic bug.

Download

View All
  • 1-9 of 9 Patches
    • Previous
    • 1
    • Next
    • Showing
    • All
    • Patches