Skip to content

Instantly share code, notes, and snippets.

@pfrozi
Created July 7, 2020 17:52
Show Gist options
  • Save pfrozi/83b49674b82cd8bce792c253fa1b7d7e to your computer and use it in GitHub Desktop.
Save pfrozi/83b49674b82cd8bce792c253fa1b7d7e to your computer and use it in GitHub Desktop.
[dotnet] Pattern dataAnnotation to FluentApi
\[Column\(\"(.+)\".+\"(.+)\"\)\]\n.+public.+\s(.+)\s\{.+\}
modelBuilder.Property(e => e.$3)\n .HasColumnName("$1")\n .HasColumnType("$2");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment