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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:13:54+00:00 2026-06-07T18:13:54+00:00

My Current Architecture Plan for my Application is UI -> WCF Bal -> Generic

  • 0

My Current Architecture Plan for my Application is

UI -> WCF Bal -> Generic Dal -> Entity Model

I have created generic Dal methods and the related entity and the specific operation to be performed will be handled from the Business Logic.

I am trying to create a Business logic on wcf and as earlier we used to do separate classes for separate entities so from WCF context m confused how to go about ?

i initially thought of creating a interface which will have generic implementation like

 public interface IBalService<TEntity> where TEntity:class 
{
    [OperationContract]
    IDictionary<int, string> Populatelist();

    [OperationContract]
    IEnumerable<TEntity> Viewall();

    [OperationContract]
    void Insert(TEntity obj);

    [OperationContract]
    void Update(TEntity obj);

    [OperationContract]
    void Delete(TEntity obj);
}

now this interface should have different implementation for different entity say Product, Category, Customer but wcf can have just one Service class…

Any idea what i should do now ???

  • 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-06-07T18:13:58+00:00Added an answer on June 7, 2026 at 6:13 pm

    In a nutshell, what I would do (and successfully done in some projects) is this:

    • Create a Service layer using WCF as an endpoint. This layer can consist of static methods, enclosed in classes that only serve as “namespaces”, such as “UserService”, “MessagesService” etc.
      What the world “see” is just these classes.

    • Create your business logic behind it, using traditional full OO classes

    • Create your DAL; in addition of the BL accessing it, the Service Layer can also access it, for simple operations that doesn’t justify using a full-blown business logic.

    I wouldn’t use generics as WCF endpoint, it could be done but if you treat your Service Layer as a single-method-for-single-operation, you will win the option to eventually turn it into a sort of public API (if you want to).

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

Sidebar

Related Questions

I'd like some feedback on my current architecture. I have a Person resource that
Our current enterprise solution is a ASP.NET MVC application driven by the Entity Framework.
The current architecture is based on WCF services which populate DTO objects from DB
I have an ASP.NET v2 website which uses NHibernate for ORM. My current architecture
I am using a Cairngorm MVC architecture for my current project. I have several
Current Process: I have a tar.gz file. (Actually, I have about 2000 of them,
Current Application Server Configuration: IIS 6.0 Windows 2003 Server Standard Edition SP2 .NET Framework
We have a requirement to design a monitoring application for our Windows client machines
I'm writing a WinForms application and want to have an MVC-Type Design. Actually it's
My current architecture is based around my entities being simple containers for data with

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.