locked
Generate Source Code RRS feed

  • Question

  • User-707544221 posted

    Can i make my dynamic data website generate the source code of the ready web site(after he build all the pages)

    Friday, July 31, 2009 3:49 PM

Answers

  • User896152122 posted

    DynamicData does its stuff at runtime, not build time, so the source code you see when you are compiling the app is what goes into the DLL's.

    There isn't a magic website that gets generated by DynamicData - it simply translates a data model into a CRUD application based on the information provided by the model and the "hints" given to it by the attributes you can apply to classes and properties.

    And it does it fantastically well for the most part.


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, August 5, 2009 10:32 AM

All replies

  • User-1685129474 posted

    After it's built you may have the option to disassemble the code. A good programmer could probably rewrite the equivelant source code as it is not in it's original written format. The first step would be to get Reflector and load the assemblies.

    Saturday, August 1, 2009 12:17 AM
  • User896152122 posted

    DynamicData does its stuff at runtime, not build time, so the source code you see when you are compiling the app is what goes into the DLL's.

    There isn't a magic website that gets generated by DynamicData - it simply translates a data model into a CRUD application based on the information provided by the model and the "hints" given to it by the attributes you can apply to classes and properties.

    And it does it fantastically well for the most part.


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, August 5, 2009 10:32 AM
  • User-330204900 posted

    Well said David. [:D] 

    Wednesday, August 5, 2009 10:50 AM
  • User-707544221 posted

    Ok, but i have a big problem that i posted before and nobody answered me, i have a system where i need to filter the data that is shown by the person that have logged in, any of you know how can i?

    Thursday, August 6, 2009 8:08 AM
  • User896152122 posted

    As usual, Steve is the man. He has a blog describing how to do this very thing.

    Thursday, August 6, 2009 8:57 AM
  • User-330204900 posted

    i have a system where i need to filter the data that is shown by the person that have logged in
     

    What are you using Entity Framework or Linq to SQL?

    Thursday, August 6, 2009 6:22 PM
  • User-152730923 posted

    Is this to say that there is no build-time 'generated scaffold' functionality in .NET?

    Wednesday, June 8, 2011 10:47 AM
  • User-330204900 posted

    That depend on what you mean :) Web Forms Dynamic Data can do most things easily.

    Wednesday, June 8, 2011 5:32 PM
  • User-152730923 posted

    I'm finding most of the information I'm looking for when comparing this scaffolding system to Rails/Symfony scaffold systems.

    The difference is that Ruby/Symfony produce files at buildtime and moficiations are made through inhertance of viewable objects, isntead of meta-data.

    It seems like there isn't a single well-written source for common scaffolding solutions.  DD is requiring a lot of research for common topics: adding form fields, removing them, changing filters, adding security.

    Are there any leading comprehensive books you can point me?  Professional ASP.NET 4.0 by Wrox was a bit disapointing.  Maybe the technology is still a bit too new for it's own literature

    Thursday, June 9, 2011 5:04 PM
  • User1043796333 posted

    Funny question, ugly answer: and No, sadly you won't find ANY book on it

    Thursday, June 9, 2011 5:06 PM
  • Thursday, June 9, 2011 5:10 PM
  • User1043796333 posted

    Good luck ... if you can until August 2011 ... probably?

    Thursday, June 9, 2011 5:14 PM