The Dapper.FastCrud uses the generic type argument for Insert
/Update
methods. This works well when the entity types are known at compile time. However, when the entity types are not known at compile time, there seems to be no way to use Dapper.FastCrud to Insert
/Update
these entities. For example:
object person = new PersonEntity();
connnection.Insert(person);
This does not work despite having PersonEntity
mappings registered with the OrmConfiguration
.
Any ideas on how to enable such scenarios? Are there any non-generic versions available for Insert
/Update
methods?