question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Format with another type or relation by FK

See original GitHub issue

I have two question regarding EntityFramework for .net core 6 version

  1. Is it possible to set format for Changes Old, New Value like in EntityFramework-Plus

.Format<OrderItem>(x => x.Price, x => x.ToString("$#.00")); As example for enum types which stored as int but you want to show them as string. 2. Is possible to grab more info for related object into to changes Like I have User -> UserProfile UserProfile -> MentorId -> User User -> UserGroup If I have changed MentorId - be able to Format value to use Mentor.Name or fetch it

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
knopacommented, Sep 2, 2022

Looks not bad. You be able to grab value from entry relation or from context if it not included

0reactions
knopacommented, Sep 2, 2022

Great

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create Foreign Key Relationships - SQL Server
In the Foreign-key Relationships dialog box, select Add. The relationship appears in the Selected Relationship list with a system-provided name ...
Read more >
How to represent foreign key in an Extended ER Model in ...
Can I use a certain format to show FKs in an EERM Extended Entity-Relationship Model in Chen notation? database-design · foreign-key · erd...
Read more >
What is a foreign key? (with SQL examples)
A foreign key is a column or columns in a database that (e.g. table_1.column_a ) that are linked to a column in a...
Read more >
What Kind of Relationship is Between These Tables?
A FK of a table is a set of columns. "FK" is also used to mean an associated constraint that we have when...
Read more >
Learn SQL: Foreign Key
So, the definition of the FK would be: “The foreign key is an attribute, or more of them, directly related to the primary...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found