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.

Adding Trim option in Reverse Engineer tool

See original GitHub issue

Can an option be added to append the following to all columns generated by using the Reverse Engineer tool to trim all leading and trailing spaces?

.HasConversion(v => v.Trim(), v => v.Trim())

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
ErikEJcommented, Nov 7, 2019

Just add a partial DbContext class, and implement the partial OnModelCreatingPartial method.

Maybe I should add this to the docs?

using Microsoft.EntityFrameworkCore;

namespace MyApp.Domain.Models
{
    public partial class OrganizationsContext
    {
        partial void OnModelCreatingPartial(ModelBuilder modelBuilder)
        {
            modelBuilder.Entity<Organization>(entity =>
            {
                entity
                .Property(e => e.Name)
                .HasConversion(v => v.Trim(), v => v.Trim());
            });
        }
    }
}

1reaction
ErikEJcommented, Nov 10, 2019

Docs updated

Read more comments on GitHub >

github_iconTop Results From Across the Web

QS Tutorials: Automatic Trimming - How to do ... - YouTube
A complete reverse engineering solution that complements any 3D scanners that ... Use QUICKSURFACE's simple and powerful tools to create 2D ...
Read more >
Tools for reverse engineering
Tools for reverse engineering. Edit online. In the list view, the Reverse Engineering window contains the following controls: List View button and Tree...
Read more >
Reverse Engineering Tools Speed Time to Product ...
Powerful reverse engineering tools in Solid Edge combined with ... Speed up reverse modeling with the new Auto-trim option of the Intersect ...
Read more >
Select the Reverse Engineering Options
Select the Reverse Engineering Options ... The modeling tool builds its models by querying the system catalog of the database, rather than querying...
Read more >
9 Best Reverse Engineering Tools for 2023 [Updated]
Looking for the best reverse engineering tools? Read our review of the top nine reverse engineering programs for Windows.
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