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

  • Home
  • SEARCH
  • 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 6852483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:22:34+00:00 2026-05-27T01:22:34+00:00

A customers ERP solution has (imho) a really ugly database structure. It doesn’t use

  • 0

A customers ERP solution has (imho) a really ugly database structure. It doesn’t use expressive names for neither tables nor columns. The table for Addresses for example looks like this:

C001_T001
=========
T001_ID
T001_F001
T001_F002
T001_F003
[...]
  • T001_ID is the primary key
  • T001_F001 stores the title
  • T001_F002 stores the last name
  • T001_F003 stores the fist name
  • T001_F003 stores the email address
  • … you get the point

The database exposes an OData-Feed, which I can use to perform database operations.

My idea is, to create a kind of wrapper around it. So that querying the database is a bit more expressive, fun and eventually more productive.

// Not cool
ctx.C001_T001s.Where(x => x.T001_F002 == "Smith" && x.T001_F003 == "John")

// Cool!
Addresses.Where(x => x.LastName == "Smith" && x.FirstName == "John")

What are possible approaches to achieve this?

  • 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-27T01:22:35+00:00Added an answer on May 27, 2026 at 1:22 am

    SImlpe. I do that all the time.

    • I Expose specific entities via Odata handcrafted to those.
    • I have a data manager where I do SELECT ( new entntiy {} – I basically project uinto the new entities
    • I do the where AFTER the proejction.

    At least BlToolkit (my ORM on this place) is smart enough to push the where clause into the SQL statement, so I get efficient lookup and nice projections.

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

Sidebar

Related Questions

I use WCF service to connect WPF front-end application with ERP back-end database. I
customers does not want to allow user to use back or forward button. Just
We have customers who, for unassailable reasons, cannot use SQL Server's built-in backup features
I have my customers name in json format i have to use it in
My company has new customers in Brazil and we realized that our excel reports
I'm connecting to a legacy database that is our ERP system. I have a
Preface We are providing customers with our service API. Each customer has own subdomain
We sent mails to customers in our application which has a link in it.
One of our customers has a hard time reading the grey text in disabled
we are creating an interface between an ERP solution and Amazon Seller Central. The

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.