Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Create business objects from XML

Create business objects from XML

Scheduled Pinned Locked Moved .NET (Core and Framework)
wpfcsharpquestiondatabasebusiness
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jean Louis Leroy
    wrote on last edited by
    #1

    I have a C#/WPF app where all the logic is coded in the dialog boxes. Pretty much like an Access app in fact. I'm re-architecturing it into a MVVM app. Some of my business objects (of type Report) live in a (legacy) database and are created upon user interaction. Some others (of type ReportDefinition and ReportParameter) are from a pre-instantiated set of read-only objects. ReportDefinition objects are identified by a key. In the Access-style app I could use XAML to create a resource dictionary indexed by the ReportDefinition key. It would be very easy to define the various ReportDefinition objects, along with their arrays of ReportParameters in XML. The objects would be readily accessible from my code. How can I achieve a similar thing in the business layer of the new app ? I guess that I'm longing for a sort of XAML-sans-View. I can imagine options based on XmlSerializer but maybe I'm overlooking a very simple and elegant solution. Any suggestions ?

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups