Page 1 of 1

CreatedDate & LastModifiedDate fields in tables

Posted: Tue 05 Feb 2013 12:53
by craigd
It would appear that when generating an Entity Developer model using the database first approach, the common fields relating to who created and modified the record and when are ignored.

Is this by design? These fields are very useful, and in fact are extremely important if one is to use advanced logic to compare state of an object to a specific time in the past.

Regards
Craig

Re: CreatedDate & LastModifiedDate fields in tables

Posted: Tue 05 Feb 2013 13:27
by craigd
Sorry - just wanted to confirm that this relates to dotConnect for SalesForce.

Re: CreatedDate & LastModifiedDate fields in tables

Posted: Tue 05 Feb 2013 13:35
by craigd
Bugger - just found the System.Objects = true setting in the ConnectionString.

Re: CreatedDate & LastModifiedDate fields in tables

Posted: Wed 06 Feb 2013 14:29
by Shalex
The "System Objects=true;" connection string parameter makes the system fields of the Salesforce objects be accessible.
Also call connection.Cache.RefreshMetadata(), which refreshes the metadata cache for the connection, to enable the setting.