locked
custom behavior in dynamic data without custom page RRS feed

  • Question

  • User-536915050 posted

    How can I include custom code or custom functions for an specific entity without create a custom page in a Dynamic Data website?

    Something like call a pre/pos update function in update event


    Thanks in advance

    Tuesday, February 1, 2011 10:52 AM

Answers

  • User-330204900 posted

    Hi Joe, I always try to put business logic in the data model by extending it. 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, February 10, 2011 6:04 PM

All replies

  • User-330204900 posted

    Hi Joe, are u=you using Liqn to SQL or Entity Framework and what version of DD are you running VS2008 and .Net 3.5 SP1 or VS2010 and .Net 4? 

    Tuesday, February 1, 2011 11:50 AM
  • User-536915050 posted

    Hi Steve

    I'm using Entity Framework, VS2010 and .Net 4


    Joe


    Tuesday, February 1, 2011 3:08 PM
  • User3866881 posted

    How can I include custom code or custom functions for an specific entity without create a custom page in a Dynamic Data website?

    I think you can write a stored procdure and drag and drop to the Linq-to-sql's design page, it should create dynamically a method, which you can use... 

    Wednesday, February 2, 2011 1:41 AM
  • User-536915050 posted

    Hi decker,

    I really need something more general, maybe some event in Page Templates that I could include a call to custom function

    for current Entity.

    Is that possible?


    Thanks in advance

    Joe

    Wednesday, February 9, 2011 11:32 AM
  • User-330204900 posted

    Hi Joe, I always try to put business logic in the data model by extending it. 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, February 10, 2011 6:04 PM