© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
11 replies
AtomicLiquid

✅ Not able to Insert data to table using Dapper

Hey folks! I'm trying to have Dapper insert a MapsModel to the database with a relation to the PlayerModel. However, when I try to do that, I get this error:
A fatal error occured while trying to handle chat command: The member Player of type EvoSC.Common.Database.Models.Player.DbPlayer cannot be used as a parameter value
A fatal error occured while trying to handle chat command: The member Player of type EvoSC.Common.Database.Models.Player.DbPlayer cannot be used as a parameter value

The code I use can be found in this pastebin:
https://pastebin.com/q99mmvnX

Anyone know how I can solve this?
Pastebin
[Table("Maps")]public class DbMap{ [Key] public long Id { get...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ filtering using dapper
C#CC# / help
3y ago
sql timeout using dapper
C#CC# / help
4y ago
Not able to store data in database
C#CC# / help
2y ago
✅ Dapper Generic Repository Error in Insert Method (SOLVED)
C#CC# / help
3y ago