Menu

Question about AFColumnAttribute

2004-08-06
2004-08-06
  • Nobody/Anonymous

    Hi Richard!

    I am trying to use custom attribute instead of xml file, but when I want to mark a class property as a timestamp(which can be found in the sample xml file given in the tutorials),I looked though all properties of AFColumnAttribute and can't find any property that can mark timestamp to be true.

    Can you tell me how to do that?

    Thank you!

     
    • Richard Banks

      Richard Banks - 2004-08-06

      Timestamps are in the AFTable class level attribute.

      Try something like

      <AFTable("tablename","dbname",KeyType.usePrimary,CreatedTimestamp:="Created",ModifiedTimestamp:="Modified")>

      - Richard.

       
    • Nobody/Anonymous

      Oh, I see.

      Thanks!

       

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.