Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 571881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:33:15+00:00 2026-05-13T13:33:15+00:00

I try to set-up a clean and flexbible application-framework for data-centric applications with silverlight-only

  • 0

I try to set-up a clean and flexbible application-framework for data-centric applications with silverlight-only UI. I want to have a strict seperation of concerns, and want to be as flexible as possible (e.g. exchange the ORM later) while still reducing the amount of code.

It took me weeks to figure out an appropriate architecture, and although my latest approach seems to fit my requirements I’m still not completely convinced, that this way will be the best and is technically possible.

Here is how my solutions-explorer looks like:

  • MyCompany.MyApplication.Entities
    Class library – project, which contains only the domain (business) objects, such as Customers, Adresses, etc. These are POCOs with the [Serializable] – attribute, but do not any other code. All properties are marked as virtual, so that classes could derive and overwrite the properties.

  • MyCompany.MyApplication.DataAccess
    Class library – project, which contains the nHibernate – specific code (Sessions) to load, save and delete the domain objects. This project has references to the Entities-project and also to the nHibernate-libraries.

  • MyCompany.MyApplication.Core
    Class library – project, which contains the business logic, and often just maps the methods form the DataAccess – project, such as GetAllCustomers, SaveCustomer, etc.
    It has references to the Entities-project and the DataAccess-project.

  • MyCompany.MyApplication.Web
    Web-application – project, which hosts the silverlight-client-app and also the WCF-services to communicate with the client-side. To expose the domain-objects to the client-side, these classes are derived and all the properties are overwritten and marked with the [DataMember] – attribute. It has references to the Entities-projects and the Core-projects.

  • MyCompandy.MyApplication.Silverlight
    Sivlerlight 3.0 – project, which represents the userinterface. It has only service-references to the WCF-Services exposed by the Web-project. The actual domain-objects aren’t accesssible, but the auto-generated proxy-classed replace them.

Please tell me, what do you think about this architecture, and if there are any conflicts! Further question: Is there any way, to avoid the properties of the domain-objects being virtual and the need to overwrite them in order to make them accessible trough WCF?

Best regards,
Daniel Lang

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T13:33:15+00:00Added an answer on May 13, 2026 at 1:33 pm

    Daniel, you are not going to get around the nhiberante requirement of virtual properties. Have you thought about using Dto’s?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Spring 2.5 transaction management and I have the following set-up: Bean1 @Transactional(noRollbackFor
I am trying to get the best possible set up for developing my django
OK, so I have this tiny little corner of my code where I'd like
Windows Phone 7 App The Goal of the application is a simple To Do
Few years ago I've developed a windows service app (VB.NET framework 1.1) which was
I am attempting to create a 3 tab iPhone Application with UITableViews on 2
I need to find the best or native resolution for an attached LCD monitor
Ok, I think this question is at the wrong place and I'll head over
I've been struggling with this for a few hours. Everything just stopped working and
I'm programming a feedback loop that takes in user commands and processes the arguments

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.