AtomicLiquid
AtomicLiquid
CC#
Created by AtomicLiquid on 12/25/2022 in #help
✅ Dapper InsertAsync fails on Postgres with relation does not exist
Hello, I am currently trying to run Dapper CRUD operations (Dapper.Contrib.Extensions) on a database table with the name "Permissions", when I try to run InsertAsync, I get a relation "permissions" does not exist. I've been skimming the interwebs, but I can't seem to find a solution. It seems like Dapper is not double quoting the tablename, even though the database model is annotated with [Table("Permissions")]
20 replies
CC#
Created by AtomicLiquid on 11/19/2022 in #help
✅ 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?
12 replies