Home > Net >  Linq does not support the operation time, and mysql does not support Dbfunction!!!!!! How to do?????
Linq does not support the operation time, and mysql does not support Dbfunction!!!!!! How to do?????

Time:10-04

Tortured by Linq crazy, EF using Linq expression AddDays error! Don't tell me what EFfunction Dbfunction, all of the mysql database will know them into database functions, and try to is not support more than 100 kinds of methods to solve!

CodePudding user response:

Tolist ForEach again after AddDays

CodePudding user response:

He is designed to essentially, mysql to find these functions, it is good that you created,,,

CodePudding user response:

Because you still IQueryable data,,,,
After tolist can be solved

CodePudding user response:

I know but toList performs very consumption performance later I want to run well in the database

CodePudding user response:

How to create a # 2?

CodePudding user response:

You can use SQL statements, the db. The database. This method

CodePudding user response:

refer to 6th floor hanjun0612 response:
you can use the SQL statement, the database. This method
are we going to what the system databases support can't so ~

CodePudding user response:

refer to 7th floor qq_39127760 response:
Quote: refer to the sixth floor hanjun0612 response:

You can use SQL statements, the db. The database. This method
are we going to what the system databases support so you can't ~


Said this before, know all EF provider can realize you want?

CodePudding user response:

refer to the eighth floor sp1234 response:
Quote: refer to 7th floor qq_39127760 response:

Quote: refer to the sixth floor hanjun0612 response:

You can use SQL statements, the db. The database. This method
are we going to what the system databases support so you can't ~


Said this before, know all EF provider can realize you want?
it is not too difficult to solve the problems in addition to this

CodePudding user response:

Not really FromSql

CodePudding user response:

Time to first define the assignment again and put it in the SQL

CodePudding user response:

Again in linq, wrong ha

CodePudding user response:

Take a look at it whether additional methods you can transform yourself, it under to solve this problem,
  •  Tags:  
  • LINQ
  • Related