npgsql / efcore.pg

Entity Framework Core provider for PostgreSQL
PostgreSQL License
1.51k stars 222 forks source link

NodaTime constructor translation #1020

Open schmitch opened 4 years ago

schmitch commented 4 years ago

From the Issue: https://github.com/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL/issues/1010#issuecomment-527956154

It would be great if it would be possible to also convert constructors (simple ones) to Postgres functions. Something like: new LocalDate(oc.Year, 1, 15) should be translated to: make_date(oc.Year, 1, 15)

roji commented 4 years ago

This is unfortunately blocked on https://github.com/aspnet/EntityFrameworkCore/issues/18797.