Menu

Created/ModifiedTimestamp

2004-07-06
2004-07-19
  • Nobody/Anonymous

    Hi there,

    I've got problems with custom
    attributes, especially with CreatedTimestamp resp. ModifiedTimestamp from AFTable. The whole attribute looks like this:

    [AFTable("notifier", "alerter_test", AFTableAttribute.KeyType.useOIDValue, OIDColumn="oid", ModifiedTimestamp="modified", CreatedTimestamp="created")]

    whereas "created" and "modified" are the names of the appropriate db-columns.

    But when I save the object, these two columns remains default in the db although there is no compiler/runttime error. OIDColumn works.

    Thanks in advance
    Christian

     
    • Richard Banks

      Richard Banks - 2004-07-19

      Hi Christian,

      Could you possibly post the generated SQL for the insert statement.  Should shoud find it in the debug output window.  The modified date should be NULL and the created date should be populated with todays date.

      Also check that the columns are datetime columns and please let me know what database server you are using.

      - Richard.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.