Closed jasonlaw closed 1 year ago
You need to register the class that defines the function in module constructor or in EntityApp:
mainModule.RegisterFunctions(typeof(MiscModelExtensions));
Look in MiscTests_Model, around line 114
Thanks for the prompt response. It is working perfectly now, thank you very much!
Hi @rivantsov ,
I am trying the db functions with MySQL but it keep failing and I have no idea where did I do wrongly.
Here is my DB Function
Here is how I call the DB Function
Here is the error summary:
Linq to SQL translation failed, invalid expression: Function DbDateDiff not supported in queries [5/17/2023 1:54:53 AM] ErrorKind:Internal Vita.Data.Linq.Translation.LinqTranslationException: Linq to SQL translation failed, invalid expression: Function DbDateDiff not supported in queries ---> System.Exception: Function DbDateDiff not supported in queries
The full error log attached here: ErrorLog.txt
Thanks in advance!