1. Question: You need to add metadata to your data context object, Invoice, in order to change how invoices are handled by Dynamic Data. Which actions should you take? (Chooseall that apply.)

    A
    Create a new partial class called Invoice in the App_Code directory.

    B
    Create a new class called InvoiceAnnotations in the App_Code directory.

    C
    Decorate the Invoice class with the MetadataTypeAttribute class.

    D
    Decorate the InvoiceAnnotations class with the ScaffoldTableAttribute class.

    Note: Not available
    1. Report
  2. Question: You have defined a custom field template user control for changing the way an Invoice number is edited. You want to apply this control to the Invoice.Number property. Which data annotation attribute class would you use to do so?

    A
    MetadataType

    B
    Display

    C
    Editable

    D
    UIHint

    Note: Not available
    1. Report
  3. Question: You want to implement custom business logic that should run when the InvoiceNumber property is modified. What actions should you take? (Choose all that apply.)

    A
    Add a CustomValidator control to the DynamicData/FieldTemplates/Integer_Edit.asax file. Set this control to process custom logic to validate an invoice number.

    B
    Extend the OnInvoiceNumberChanged partial method inside the Invoice partial class to include additional validation logic.

    C
    Extend the OnInvoiceNumberChanging partial method inside the Invoice partial class to include additional validation logic.

    D
    If the logic fails, throw a ValidationException instance.

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd