Dapper with Postgres and DateTimeOffset not working
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 18.4k
- Forks
- 3.7k
- Avg merge
- 5h 8m
- Merged PRs (30d)
- 1
Description
It claims always about a non existing constructor... in Postgres it is timestamp which should be fine...
Any ideas?
An exception of type 'System.InvalidOperationException' occurred in Dapper.dll but was not handled in user code: 'A parameterless default constructor or one matching signature (System.Guid event, System.Guid user, System.Double score, System.DateTime datetime, System.Boolean active)
the described constructor looks like this:
public Event(
Guid id,
String name,
String description,
DateTime starting,
DateTime ending,
Guid place,
bool active)
{
...
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no repository files or tests. Start by locating Dapper's constructor-matching and materialization path, then reproduce the reported PostgreSQL mapping with the provided Event constructor and reported Guid, Double, DateTime, and Boolean signature; done means the cause and expected DateTimeOffset behavior are verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, postgresql
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100