If I execute queries with SimpleCRUD i.e., connection.GetList<_type>(); , then my custom type handlers are never executed. If I execute the same query directly with connection.Query<_type>(queryString), then my custom handlers get called without any issue. Am I doing something wrong? I can see that SimpleCrud also just calls Dapper.Query<T>. I can't seem to find the issue on my end.
Dapper SimpleCRUD custom handlers ignored
215 Views Asked by Faheem At
1
There are 1 best solutions below
Related Questions in DAPPER
- Dapper.Contrib can't insert into database
- An error occurred while trying to restore packages: 'Dapper' already has a dependency defined for 'System.Data.SqlClient'
- Intermittent dapper error "Object reference not set to an instance of an object" when running QueryAsync
- How to set "native" db types when passing parameters, e.g., NpgsqlDbType / SqlDbType / or just parameter.TypeName / etc.)
- How to using Dapper to extract data from column dynamically altered table
- QueryAsync returns intermittent errors 'This MySqlConnection is already in use.' and 'Connection must be Open; current state is Connecting'
- .NET 6 When using Dapper to call a stored procedure, I receive the error The I/O operation has been aborted
- Binding a complex model to Dapper DynamicParameters
- Sql connection works with MySql.Data but not with Dapper/IDbConnection with path not found error
- Dapper multi-mapping error one-to-many query
- Does DapperExtensions nuget package support writing complex objects in SQLite?
- How do I return an object (with another object within) from a join table in SQL using C# and Dapper?
- Dapper Dynamic Parameters Dictionary values
- Postgres loses one digit when saves DateTimeOffset from .Net app (Dapper)
- Using MS Tests with sqlite in memory DB for API unit testing
Related Questions in CUSTOM-TYPE
- Issue with doctrine UUID v4 conversion in symfony app
- Custom types in angular
- unsupported type | rust | postgres | sqlx | update | enum | custom type
- Loop through a list of custom type into another list of objects
- How to assign custom type pointers?
- On Wordpress Custom RSS template array custom tags taxonomy display only the first
- eigen custom type expression template type issue
- Model custom type as pointer or as reference?
- Is there a way to enforce a Map object has all literals of "a union type of literals" as keys, in TypeScript?
- Unmarshal to Enum type using a custom Scan func
- In Pydantic, how do I apply the flags that I have set in my base model to my custom type?
- Dart - How to create custom types on the fly like in Typescript?
- Format of date changes when using it via custom types
- Server does not recognize a custom type literal
- How to decode a JSON array into Elm list of custom types
Related Questions in DAPPER-SIMPLECRUD
- SCOPE_IDENTITY Exception
- Dapper.SqlMapper.AddTypeHandler appears not to be called with Postgres SimpleCRUD where clause
- Dapper / SimpleCRUD Insert with VARCHAR primary key throwing FormatException - "The string was not in a correct format"
- Cannot pass object to Dapper.SimpleCrud insert
- How to setup my code as DB First in an ORM
- How to set Schema name using Dapper.SimpleCrud?
- Dapper.SimpleCRUD Insert issue without identity
- Dapper yielding different results
- How to use Dapper LINQ with TableDirect (without embedded SQL) with ORACLE?
- Dapper SimpleCRUD custom handlers ignored
- Dapper w/ SIMPLECrud: GetList with WHERE behaving like LIKE instead of =
- Dapper with Oracle give ORA-00936: missing expression error
- How to configure Dapper for Multi-tenant tables?
- Dapper SimpleCRUD casts: "Unable to cast object of type 'System.Guid' to type 'System.IConvertible'."
- Error trying to insert generic with Dapper.SimpleCRUD
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I figured it out. Actually SimpleCRUD will ignore all types that is not
TypeExtension.IsSimpleType()This happens inside
GetScaffoldablePropertiesModifying a few lines of code fixes the issue (i.e., removing the check forIsSimpleType())OR One could simply set
[Editable(true)]flag on the complex type field.