You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can use [an Entity Framework 6 IDbCommandInterceptor](https://msdn.microsoft.com/en-us/library/dn469464(v=vs.113).aspx) to wrap the `DataReader` instance returned by Npgsql when Entity Framework executes queries. This is possible using a ```DbConfiguration``` class.
39
+
40
+
Example use cases:
41
+
- Forcing all returned ```DateTime``` and ```DateTimeOffset``` values to be in the UTC timezone.
42
+
- Preventing accidental insertion of DateTime values having ```DateTimeKind.Unspecified```.
43
+
- Forcing all postgres date/time types to be returned to Entity Framework as ```DateTimeOffset```.
0 commit comments