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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:14:37+00:00 2026-05-14T00:14:37+00:00

Currently I am creating a WCF service which has to connect to a DAL

  • 0

Currently I am creating a WCF service which has to connect to a DAL which, just connects to a database using ADO.net and stored procedures.

The DAl writes its responses from the database to a datacontract which is passed over the wire to the client via the service.

I was reading that this may possibly be the anti pattern ‘CRudy Interface’, but I wasn’t sure as I am sharing the datacontract.

If I am using an anti pattern, can anyone suggest a better pattern to use for the behavior I require?

  • 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-14T00:14:37+00:00Added an answer on May 14, 2026 at 12:14 am

    Well, there seems to be some controversy about the CRUDy pattern and it’s pros and cons. At a minimum, I would call a service interface that makes you write this kind of code to use it an anti-pattern (as commented here):

    service.CreateCustomer(c);
    
    foreach(Group group in c.Groups)
    
      service.AddCustomerToGroup(c.CustomerId, group.GroupId);
    
    foreach(Person person in c.Contacts)
    
      service.AddCustomerContact(c.CustomerId, person);
    

    Is exposing CRUDy interfaces bad in itself? I wouldn’t say so. What’s important is to provide an interface which will

    1. encapsulate knowledge about the underlying processes
    2. not be very chatty
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a silverlight card game which talks to a WCF service using
I'm currently in the process of creating a WCF webservice which should be compatible
I'm using a simple ajax-enabled WCF service. I'm creating a string of XML on
I am currently creating a WCF web service. As part of its job, it
I am currently writing a .Net application in c#, which has two main components:
I currently creating a database the purpose of which is log the number of
im currently creating a graph for an app, using coreplot and have a problem
I am developing a web application with multiple WCF service references. Currently, each time
Ive just started using WCF with silverlight and its working fine. But one thing
Im currently creating a tile-based game for android. Using java via dalvik JVM. im

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.