locked
ScaffoldTable attribute has no effect RRS feed

  • Question

  • User539648229 posted

    Hi

    In a new DD project I want scaffold selectively. I set ScaffoldAllTables=false and decorate product class with [ScaffoldTable(true)] and there is an exception that there is no visible table. In inverse condition (ScaffoldAllTables=true and [ScaffoldTable(false)] ) app runs and product table is scaffolded. it seems the attribute has no effect. the partial class is in the same namespace as the model. please help.

    thanks

    Saturday, March 30, 2013 4:42 AM

Answers

  • User539648229 posted

    Hi

    I moved the file that the partial class was defined to the root of the application and it solved. I think the problem was difference between web site and web project. is anyone knows a reference for this matter? I mainly worked with web sites.

    thanks

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, March 30, 2013 5:59 AM