locked
How to deal with such fields properly: CreatedBy, CreatedDate, ModifiedBy, ModifiedDate RRS feed

  • Question

  • User701656190 posted

    My table has such fields that should not be edited by end user: CreatedBy, CreatedDate, ModifiedBy, ModifiedDate.

    What's the proper way to deal with them in Inser/Edit mode of the ListDetail page template?

    Thanks,

    Tuesday, December 10, 2013 1:48 PM

Answers

  • User-330204900 posted

    Hi Sheng Zeng, I update mine in the data model see my article here Basic Auditing for Dynamic Data with Entity Framework 4.x

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, December 10, 2013 5:42 PM
  • User701656190 posted

    Hi, Stephen

    Your solution is very neat when DD consumes the EF data model directly! Thank you!

    In my project there's a service layer (WCF Data Service) between DD and EF data model. So it's not easy to use your solution directly.

    Currently I'm using some customized field templates whose values are populated automatically and disbaled in Insert/Edit mode.

    Samson

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, December 17, 2013 2:21 PM

All replies

  • User-330204900 posted

    Hi Sheng Zeng, I update mine in the data model see my article here Basic Auditing for Dynamic Data with Entity Framework 4.x

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, December 10, 2013 5:42 PM
  • User701656190 posted

    Hi, Stephen

    Your solution is very neat when DD consumes the EF data model directly! Thank you!

    In my project there's a service layer (WCF Data Service) between DD and EF data model. So it's not easy to use your solution directly.

    Currently I'm using some customized field templates whose values are populated automatically and disbaled in Insert/Edit mode.

    Samson

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, December 17, 2013 2:21 PM
  • User-330204900 posted

    I did not realize you were using WCF have you check the WCF forums for a solution?

    Tuesday, December 17, 2013 7:14 PM
  • User-330204900 posted

    Thinkin about this if the back end of your WCF Domain Service is using Ef then this would still work if added there.

    Friday, December 27, 2013 8:51 AM