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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:08:52+00:00 2026-05-28T20:08:52+00:00

I am utilizing the Entity Framework in order to interface with some WCF services

  • 0

I am utilizing the Entity Framework in order to interface with some WCF services and some MVC3 websites I have built. I am using a database first approach.

What I have created is a library that has a Data, Model, and CRUD folder. Data contains the edmx file and a partial class for my Entities that creates a ToDTO() method. The Model contains a class of each of my entities that I can pass around as an object. The CRUD contains what should be expected – common read, update and delete methods.

My entities are named in the fashion of ‘StudentEntity’, and my DTO have a simpler name such as ‘Student’. So the StudentEntity class has a method ToDTO which returns a Student object.

And my CRUD folder has a class with name Student that contains the CRUD operations for the student entities.

The confusion seems to come when I have another deleloper look over the code, they get confused on which Student they are looking at, the entity, the DTO, or the CRUD class.

How should I change my naming scheme to make it more understandable? Also can you give me any suggestions on cleaning it up a bit. Maybe I do not need the DTO classes and can somehow use extension/reflection to not have a separate class for each ToDTO method.

  • 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-28T20:08:53+00:00Added an answer on May 28, 2026 at 8:08 pm

    If I had to keep that same architecture, I would use the following naming conventions:

    // Namespaces & folders
    // /DTO   (Data Transfer Objects classes only)  
    // /Model (edmx files and utility classes)  
    // /Data  (Repositories)
    // /Services (Specialized repositories and business logic classes)
    
    // Naming conventions
    StudentDTO // (Data Transfer Object)
    Student    // (the entity itself)
    StudentRepository // (very common and conventional name)
    StudentService    // (common and conventional name)
    

    My 2 cents,
    Sincerely,
    Max

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

Sidebar

Related Questions

I am utilizing Entity Framework 4.0 and WCF. I am new to using Entity
I plan to write my first application using Entity Framework + Repository + Unit
We have some services utilizing SunRPC on Linux (RHEL 4/5) that we'd like to
I'm using the codeigniter framework and utilizing the uri->segment(); function I have an array:
I have been looking into using the Entity Framework in my C# game server
i have some problem with utilizing TLF, i need to parse through the text
I created a web application specific for the .Net version 4.0 utilizing entity framework
I have a site written in PHP utilizing PDO. I am using the bindParam()
I'm utilizing the Reporting Services web service to generate a report and allow the
I am utilizing the javax.scripting with Rhino in this project. I have a Java

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.