what are 'EdmFunctions' for?

后端 未结 1 1788
渐次进展
渐次进展 2021-01-28 18:19

i saw the System.Data.Common.CommandTrees.ExpressionBuilder.EdmFunctions static class accidently, that contains a set of extension methods on System.Data.Comm

相关标签:
1条回答
  • These methods are not meant for general consumption, you continue to use SqlFunctions or EntityFunctions in client code. They are the stock implementations of the canonical functions that can execute on an arbitrary provider. Microsoft includes the providers for XML, BCL collections and Entity SQL. Somebody else can create a provider to, say, their own dbase engine or ORM.

    The mapping from, say, EntityFunctions.AddDays() to EdmFunctions.AddDays() occurs dynamically when the query comprehension is executed.

    0 讨论(0)
提交回复
热议问题