Zul*_*der 12 c# entity-framework .net-core
SqlFunctions
实体框架(EF)Core 2.0中的等价物是什么?
我试图将其转换为EF Core
private static readonly MethodInfo StringConvertMethodDouble = typeof(SqlFunctions).GetMethod("StringConvert", new Type[] { typeof(double?) });
Run Code Online (Sandbox Code Playgroud)
编辑#1: 我应该指定我使用表达式树生成动态linq查询来查询数据库
谢谢
Mar*_*ich 11
EF Core表面功能通过EF.Functions
,但仅在2.0 Like
中可用:
ctx.TestEntities.Any(entity => EF.Functions.Like(entity.Name, "%foo%"))
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
3126 次 |
最近记录: |