Search found 79 matches

by OutOfTouch6947
Thu 15 Jun 2017 22:10
Forum: Entity Developer
Topic: DateTime Default not working correctly
Replies: 18
Views: 7304

Re: DateTime Default not working correctly

Thanks for the info.
by OutOfTouch6947
Thu 01 Jun 2017 14:57
Forum: Entity Developer
Topic: DateTime Default not working correctly
Replies: 18
Views: 7304

Re: DateTime Default not working correctly

I sitll would like to see a detailed explanation of AutoSync.
I set AutoGenerated = true and AutoSynch to OnInsert since I don't understand exactly what this value does, and my database constraints require the modified date not be null.
OutOfTouch6947 wrote:I didn't set the AutoGeneratedValue or Auto-Snc.
Where can I find an detailed explanation of AutoSync Mode?
Shalex wrote:
OutOfTouch6947 wrote:Here is the insert statement with the CreatedDate and ModifiedDate added back into the models and the values are not defaulting correctly in the backend, so the model must be passin in some junk value. [...]
1. Did you set the following attributes for your CreatedDate and ModifiedDate properties in *.lqml?
CreatedDate: AutoGeneratedValue=True, Auto-Sync=OnInsert
ModifiedDate: AutoGeneratedValue=True, Auto-Sync=OnUpdate

2. Specify (via dbMonitor) the values of parameters used in the INSERT statement for "CreatedDate" and "ModifiedDate" columns.

3. Send us a small test project with the corresponding DDL/DML script for reproducing the issue in our environment.
by OutOfTouch6947
Fri 19 May 2017 18:45
Forum: Entity Developer
Topic: DateTime Default not working correctly
Replies: 18
Views: 7304

Re: DateTime Default not working correctly

I didn't set the AutoGeneratedValue or Auto-Snc.
Where can I find an detailed explanation of AutoSync Mode?
Shalex wrote:
OutOfTouch6947 wrote:Here is the insert statement with the CreatedDate and ModifiedDate added back into the models and the values are not defaulting correctly in the backend, so the model must be passin in some junk value. [...]
1. Did you set the following attributes for your CreatedDate and ModifiedDate properties in *.lqml?
CreatedDate: AutoGeneratedValue=True, Auto-Sync=OnInsert
ModifiedDate: AutoGeneratedValue=True, Auto-Sync=OnUpdate

2. Specify (via dbMonitor) the values of parameters used in the INSERT statement for "CreatedDate" and "ModifiedDate" columns.

3. Send us a small test project with the corresponding DDL/DML script for reproducing the issue in our environment.
by OutOfTouch6947
Thu 18 May 2017 18:20
Forum: Entity Developer
Topic: DateTime Default not working correctly
Replies: 18
Views: 7304

Re: DateTime Default not working correctly

Ok so I determined as soon as I remove it from the model it uses the default constraint correctly. When it is in the model I don't set any value for it not even null. Is that what is causing the problem?
by OutOfTouch6947
Thu 18 May 2017 17:43
Forum: Entity Developer
Topic: DateTime Default not working correctly
Replies: 18
Views: 7304

Re: DateTime Default not working correctly

Here is the insert statement with the CreatedDate and ModifiedDate added back into the models and the values are not defaulting correctly in the backend, so the model must be passin in some junk value.

Code: Select all

INSERT INTO public."SalesOrderHeader" ("CustomerId", "OrderNumber", "SalesRepId", "SalesRepName", "SourceCode", "Date", "SubTotal", "Discount", "SalesTaxRate", "SalesTaxAmount", "ShippingTotal", "OrderTotal", "PaymentMethodTypeId", "PromoCode", "CreatedDate", "CreatedBy", "ModifiedDate", "ModifiedBy", "Exported", "Notes") VALUES (:p1, :p2, :p3, :p4, :p5, :p6, :p7, :p8, :p9, :p10, :p11, :p12, :p13, :p14, :p15, :p16, :p17, :p18, :p19, :p20) RETURNING "SalesOrderHeaderId"
OutOfTouch6947 wrote:I just added it back to the model and again I don't see the correct datetime being inserted, I am going to run DBMONITOR again and post the insert statement.
OutOfTouch6947 wrote:Correction I now see the correct value being inserted into the table for the CreatedDate, I am going to add it back to the model and run dbmonitor again and see if it works correctly.
OutOfTouch6947 wrote:You can see that I removed the CreatedDate from the model for this table as a test to see, if it would default correctly, and it still does not, but it also is not in this insert statement.

Code: Select all

INSERT INTO public."SalesOrderHeader" ("CustomerId", "OrderNumber", "SalesRepId", "SalesRepName", "SourceCode", "Date", "SubTotal", "Discount", "SalesTaxRate", "SalesTaxAmount", "ShippingTotal", "OrderTotal", "PaymentMethodTypeId", "PromoCode", "CreatedBy", "ModifiedBy", "Exported", "Notes") VALUES (:p1, :p2, :p3, :p4, :p5, :p6, :p7, :p8, :p9, :p10, :p11, :p12, :p13, :p14, :p15, :p16, :p17, :p18) RETURNING "SalesOrderHeaderId"
by OutOfTouch6947
Thu 18 May 2017 17:35
Forum: Entity Developer
Topic: DateTime Default not working correctly
Replies: 18
Views: 7304

Re: DateTime Default not working correctly

I just added it back to the model and again I don't see the correct datetime being inserted, I am going to run DBMONITOR again and post the insert statement.
OutOfTouch6947 wrote:Correction I now see the correct value being inserted into the table for the CreatedDate, I am going to add it back to the model and run dbmonitor again and see if it works correctly.
OutOfTouch6947 wrote:You can see that I removed the CreatedDate from the model for this table as a test to see, if it would default correctly, and it still does not, but it also is not in this insert statement.

Code: Select all

INSERT INTO public."SalesOrderHeader" ("CustomerId", "OrderNumber", "SalesRepId", "SalesRepName", "SourceCode", "Date", "SubTotal", "Discount", "SalesTaxRate", "SalesTaxAmount", "ShippingTotal", "OrderTotal", "PaymentMethodTypeId", "PromoCode", "CreatedBy", "ModifiedBy", "Exported", "Notes") VALUES (:p1, :p2, :p3, :p4, :p5, :p6, :p7, :p8, :p9, :p10, :p11, :p12, :p13, :p14, :p15, :p16, :p17, :p18) RETURNING "SalesOrderHeaderId"
by OutOfTouch6947
Thu 18 May 2017 15:33
Forum: Entity Developer
Topic: DateTime Default not working correctly
Replies: 18
Views: 7304

Re: DateTime Default not working correctly

Correction I now see the correct value being inserted into the table for the CreatedDate, I am going to add it back to the model and run dbmonitor again and see if it works correctly.
OutOfTouch6947 wrote:You can see that I removed the CreatedDate from the model for this table as a test to see, if it would default correctly, and it still does not, but it also is not in this insert statement.

Code: Select all

INSERT INTO public."SalesOrderHeader" ("CustomerId", "OrderNumber", "SalesRepId", "SalesRepName", "SourceCode", "Date", "SubTotal", "Discount", "SalesTaxRate", "SalesTaxAmount", "ShippingTotal", "OrderTotal", "PaymentMethodTypeId", "PromoCode", "CreatedBy", "ModifiedBy", "Exported", "Notes") VALUES (:p1, :p2, :p3, :p4, :p5, :p6, :p7, :p8, :p9, :p10, :p11, :p12, :p13, :p14, :p15, :p16, :p17, :p18) RETURNING "SalesOrderHeaderId"
by OutOfTouch6947
Thu 18 May 2017 15:28
Forum: Entity Developer
Topic: DateTime Default not working correctly
Replies: 18
Views: 7304

Re: DateTime Default not working correctly

You can see that I removed the CreatedDate from the model for this table as a test to see, if it would default correctly, and it still does not, but it also is not in this insert statement.

Code: Select all

INSERT INTO public."SalesOrderHeader" ("CustomerId", "OrderNumber", "SalesRepId", "SalesRepName", "SourceCode", "Date", "SubTotal", "Discount", "SalesTaxRate", "SalesTaxAmount", "ShippingTotal", "OrderTotal", "PaymentMethodTypeId", "PromoCode", "CreatedBy", "ModifiedBy", "Exported", "Notes") VALUES (:p1, :p2, :p3, :p4, :p5, :p6, :p7, :p8, :p9, :p10, :p11, :p12, :p13, :p14, :p15, :p16, :p17, :p18) RETURNING "SalesOrderHeaderId"
by OutOfTouch6947
Mon 15 May 2017 13:57
Forum: Entity Developer
Topic: DateTime Default not working correctly
Replies: 18
Views: 7304

Re: DateTime Default not working correctly

I can't provide you what you asked, unless you tell me where to load in code PgSqlMonitor in MVC application?
by OutOfTouch6947
Thu 11 May 2017 17:28
Forum: Entity Developer
Topic: DateTime Default not working correctly
Replies: 18
Views: 7304

Re: DateTime Default not working correctly

Where do I load in code PgSqlMonitor in MVC application?
by OutOfTouch6947
Thu 11 May 2017 14:38
Forum: Entity Developer
Topic: DateTime Default not working correctly
Replies: 18
Views: 7304

Re: DateTime Default not working correctly

I took CreatedDate out of the model and I get the same result. So is it even possible to still be the model that is causing the issue?
by OutOfTouch6947
Wed 10 May 2017 18:57
Forum: Entity Developer
Topic: DateTime Default not working correctly
Replies: 18
Views: 7304

Re: DateTime Default not working correctly

Does anyone have any ideas on what is causing this?
by OutOfTouch6947
Fri 05 May 2017 21:52
Forum: Entity Developer
Topic: DateTime Default not working correctly
Replies: 18
Views: 7304

DateTime Default not working correctly

No matter what I try as the default now(), localtimestamp, etc... I always see, 0001-01-01 00:00:00 as the value when the record is inserted and I am not providing the value. I am not sure if it is the ED or me and my lack of postgresql knowledge but this is a pretty easy and basic thing to do in the other database I came from.
Here is an example of one of the ways I have tried to default the value.

Code: Select all

ALTER TABLE "SalesOrderHeader" ALTER COLUMN "CreatedDate"  SET DEFAULT localtimestamp;
by OutOfTouch6947
Fri 28 Apr 2017 14:34
Forum: dotConnect for PostgreSQL
Topic: How to deploy SSIS Package to production that uses SSIS components?
Replies: 3
Views: 2590

Re: How to deploy SSIS Package to production that uses SSIS components?

How do I install with the minimal installation I don't see that option.