DapperLib / DapperLib/Dapper.Contrib

In the Dapper.Contrib,I use the 'Insert'Method,It will return a '0'.

Open
#45 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
293
Forks
109
PR merge metrics
No merged PRs in 30d

Description

I read source code,foun that the Inser method use the 'SCOPE_IDENTITY' to select inffect record.but my Identity type is GUID.So ,It will return '0' to me.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the Dapper.Contrib Insert method and its SCOPE_IDENTITY handling. Reproduce an insert using a GUID identity and inspect the returned value. Done means GUID-identity inserts return the inserted identifier rather than 0, with regression coverage.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
database
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.