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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:01:07+00:00 2026-05-13T11:01:07+00:00

I have a database table which records all field changes in all database tables

  • 0

I have a database table which records all field changes in all database tables which are mapped to Entity Framework Entities (via SQL Server triggers).

I am building a service which outputs these field changes to the client.

However, the client needs the EF-Entity object and property names and not the database table and field names.

For example, if these database fields change:

Table         Field        WhenChanged
------------  ------------ ----------          ...
Calendar      Event        2010-01-05 15:00:00
Calendar      Place        2010-01-05 15:22:00

I need to report that these entity properties changed:

Entity        Property        WhenChanged
------------  ------------ ----------              ...
Appointment   EventName        2010-01-05 15:00:00
Appointment   Place            2010-01-05 15:00:00

Some names are the same, some are not: the mapping is defined the .edmx file.

Are there any EF methods I can call or tools I could use which would do this backward tablename-to-objectname and fieldname-to-propertyname translation without actually instantiating the objects?

  • 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-13T11:01:07+00:00Added an answer on May 13, 2026 at 11:01 am

    I’ll say ahead of time I don’t know much about the Entity Framework. However based on experience with other ORMs not sure what you want will work since you are dealing with the physical data not a mapping per se. So based on your example what you could do to solve your problem is have an entity that is mapped to your log file. Then when you send this log file down have it contain a lookup (dictionary) or use reflection to determine what goes where and then send that change down.

    If you are just looking to do a name switch as in you just want to provide a running log of changes you could use the concept of a MetaData table that contains your entity / property mappings to table / field names. Then your sql could join to that table and pull back the associated name vs the database value.

    Along the lines of the association / metadata route if you can parse your .edmx file you may be able to use that as your meta store and then just overlay the incoming values from the db based on that lookup.

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

Sidebar

Ask A Question

Stats

  • Questions 299k
  • Answers 299k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Aniko's comment has almost all you need (along with header=TRUE):… May 13, 2026 at 7:44 pm
  • Editorial Team
    Editorial Team added an answer You will need to create a new template for the… May 13, 2026 at 7:44 pm
  • Editorial Team
    Editorial Team added an answer Consider SmartGWT. It has a built-in REST connector that is… May 13, 2026 at 7:44 pm

Related Questions

I have database schema for an integration project in which I need to be
I have a database which tries to acheive point-in-time information by having a master
READ FIRST before answering! I have a RESTful service which wraps around the Entity
I have an Access database. Let's pretend it's for a pet store. There's a
I was asked to post this as a question on StackOverflow by http://twitter.com/jonathanjulian which

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.