Npgsql is the .NET data provider for Postgresql. It allows any program developed for .NET framework to access a Postgresql database server. It is implemented in 100% C# code. Postgresql versions since 9.0 are officially supported, others may work.
I'm looking at the source and see an enum called PostgresExpressionType.AtTimeZone
and am wondering if this can be used. For example i have a type.
public class Example
{
public DateTimeOffset SomeDate {get; set;}
public string IanaTimeZone {get; set;}
}
i'd like to write a query as follows_context.Example.Where(x=> x.SomeDate.AtTimeZone(x.IanaTimeZone).DayOfWeek == DayOfWeek.Monday
Hi Guys,
Got a question. I have a column having type astext[]
, while storing data I am facing no problem. but while querying its not returning anything. e.g.var query = dbContext.Users.Where(x=>x.Aliases.Contains("somevalue")).Select(a=>a);
Solved!! Upgraded to 5.0.0-rc1
dotnet add package Npgsql.EntityFrameworkCore.PostgreSQL --version 5.0.0-rc1
Thanks @AlbertoPa for your time :)