1

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.

G Davison
  • 1,079
  • 1
  • 14
  • 21
Faheem
  • 1,423
  • 2
  • 13
  • 22

1 Answers1

3

I figured it out. Actually SimpleCRUD will ignore all types that is not TypeExtension.IsSimpleType()

This happens inside GetScaffoldableProperties Modifying a few lines of code fixes the issue (i.e., removing the check for IsSimpleType())

OR One could simply set [Editable(true)] flag on the complex type field.

Faheem
  • 1,423
  • 2
  • 13
  • 22