I just downloaded 5.3.2 a few days ago. (I was previously using 3.5)
.net 4.5
Postgres 9.4
Adapter
I am trying to use the Model First approach with a new project, and I cannot find a way to end up with an unspecified numeric (e.g. ALTER TABLE x ADD y numeric; )
My old database first project (v3.5) created entity fields from the relational database as decimal with a precision and scale (0, 0).
For the Model First with this new project (v5.3), I am trying to accomplish the same db field by creating a an entity field with decimal with 0,0. But the ddl script is creating the fields with (0,0) instead of omitting the precision and scale which is required to accomplish the goal of an unrestricted decimal number.
This is the sql generated by the designer:
ALTER TABLE "lc"."lcbidhistory"
ADD COLUMN "discountmargin" numeric(0, 0) NULL;
Postgres returns this error:
ERROR: NUMERIC precision 0 must be between 1 and 1000
LINE 3: ADD COLUMN "allocationpct" numeric(0, 0) NULL;
So what I need is the ddl generator to recognize the (0,0) and omit it entirely:
ALTER TABLE "lc"."lcbidhistory"
ADD COLUMN "discountmargin" numeric NULL;
Hopefully, there is a setting I overlooked or a template file that can can be patched to get this moving, but I'd prefer if the solution become part of the base install of LLBLGen. I prefer not to have to maintain a set of custom templates.
I finally got the approval to upgrade to 5.3 because 3.5 didn't seem to generate the ddl the way I wanted (i.e. case insensitive, using the "Relational model data element name casing case sensitive dbs" project setting). That worked! But I need to get this numeric issue resolved. I took on a project to prove that I can spin up an app in 3 weeks using .net and llblgen, and it result in a better product than a 3rd party business rules engine that we're currently being sold on.