Dapper with Mssql using Explain
- or -
Post a project like this1327
€10(approx. $11)
- Posted:
- Proposals: 3
- Remote
- #2952841
- Awarded
Description
Experience Level: Entry
I have a project where i add Dapper has ORM but i have a problem with that...
My project use DTO and DAO structure so, when i want to add something new i have just to use a code like:
SampleDTO Sample = new SampleDTO
{
value = x;
value2 = y
}
DAO.SampleDAO.Insert(Sample);
The problem is that some table have the Autoincrement Key so, when i insert my sample on the Database, im not able to get it with Sample.Key.
Everytime that i want to get the last Sample i have to restart my console project.
How can resolve this problem?
My project use DTO and DAO structure so, when i want to add something new i have just to use a code like:
SampleDTO Sample = new SampleDTO
{
value = x;
value2 = y
}
DAO.SampleDAO.Insert(Sample);
The problem is that some table have the Autoincrement Key so, when i insert my sample on the Database, im not able to get it with Sample.Key.
Everytime that i want to get the last Sample i have to restart my console project.
How can resolve this problem?
Simone D.
100% (3)Projects Completed
3
Freelancers worked with
3
Projects awarded
50%
Last project
8 Aug 2020
Italy
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies