Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

C#

Radu - Adrian Buha
PLUS
Radu - Adrian Buha
Courses Plus Student 5,535 Points

Is there a Dapper expert around here? I have a question for a project of mine.

Hi.

I'm working at a project for my portfolio and I've got a bit of a setback. I have a project where I try to import values from a database to a dataGridView and I'm using Dapper and stored procedures. The thing is, that the code works, at least to some extent. I managed to get the values from the database into the dataGridView, but the int field shows "zero" values instead of the correct values.

Any help would be greatly appreciated. Thanks!

2 Answers

James Churchill
STAFF
James Churchill
Treehouse Teacher

Adrian,

If there's a GitHub repo that you can share, I'd be happy to take a look at your code.

Thanks ~James

Radu - Adrian Buha
PLUS
Radu - Adrian Buha
Courses Plus Student 5,535 Points

Hi James,

First of all, sorry for my late reply. I was in Holiday and my internet access was not that great. I managed to figure out the problem. The this was I had a naming difference between my C# class and the database.

Many thanks for your support!

Best of wishes, Radu