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 6769393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:11:18+00:00 2026-05-26T15:11:18+00:00

I am in a process of writing a windows service which will read an

  • 0

I am in a process of writing a windows service which will read an XML file generated periodically and update a DB. I have generally seen a 3 tier architecture in web apps (Presentation, BL & DAL as class library). I have the following questions

  1. Should we follow the same approach for the desktop app/windows service?

  2. Do we need to create instance members for DAL class or should it be static?

  3. Is there any tool that can quickly generate the DAL layer for the mapped DB?

    Any guidance will be greatly appreciated.

Thanks.

  • 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-26T15:11:19+00:00Added an answer on May 26, 2026 at 3:11 pm

    You don’t have to use LINQ, NHibertate or Entity.
    A lot of projects running on .NET 4.0 still use old fashioned ADO.NET.

    LINQ to SQL is not something to be proud of in your application.
    As for Entity Framework or NHibernate, those are ORM APIs and have their highly beneficial usage scenarios, but also have a steep learning curve, and are less efficient in performance than using inline queries or Stored Procedure (But offer a lot better extensibility and maintainability). Another benefit in using those ORM libraries is that you don’t have to write SQL in most cases, but it can give you some headaches if you have complex scenarios.
    And you can use Entity Framework with .NET 3.5

    If you are comfortable with SQL and the project has not a big team allocated, there’s nothing wrong at all with using inline queries or stored procedures.
    Or, if you like, you can use something like MyBatis, which puplates objects using reflection based on a provided XML file. (I think they have generation tools).

    So my opinion, if you have a big database, but don’t expect complex queries, the cost of learning Entity Framework is justified.
    But if you have a small database but with complex queries, which are already written somewhere, it would be a huge mistake to use Entity or NHibernate…

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

Sidebar

Related Questions

I'm writing windows service which will process something every couple minutes. Here is some
I have been recently challenged with writing a Windows Service. I needed to periodically
I'm writing a windows service which will be used to monitor some other services
I have a Windows Service that I am in the process of writing. I
Currently I am writing the windows service to process massive xml files and save
I'm writing a windows service to consume MSMQ messages. The service will have periods
I'm writing a Windows service to process files created by another process over which
I am writing a windows service which will communicate to a user level application.
I'm writing a service in C# on Windows which should be triggert by an
I'm writing a Windows service which starts a TCP listener. The core code works

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.