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

Related Questions

In a SQL server database, I have a table which contains a TEXT field
I have a database table called Posts which stores all the information regarding an
I have a database (NexusDB (supposedly SQL-92 compliant)) which contains and Item table, a
I have many tables in my database which are interrelated. I have a table
I have a database with a table which is full of conditions and error
I have a database table (named Topics) which includes these fields : topicId name
I have a string column in a database table which maps to an Enum
I have a database structure that has a Person table which contains fields such
I have an Access database in which I drop the table and then create
I have a table in my database which stores a tree structure. Here are

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.