Entity Framework 4 - can I call the SSDL function from another command text of the SSDL function?

Is it possible to call the SSDL function from another SSDL CommandText function? For example, let's say I have the following SSDL function defined in my edmx file:

<Function Name="blah" IsComposable="false">
  <CommandText>
    ...blah related stuff...
  </CommandText>
  <Parameter Name="blah_param" Type="int" />
</Function>

Is it possible to define a second SSDL function that causes "blah"? For instance:

<Function Name="blah2" IsComposable="false">
  <CommandText>
    ...
    blah(3);
    ...
  </CommandText>
  <Parameter Name="blah2_param" Type="int" />
</Function>

"blah" and "blah2" do NOT exist as stored procedures in the database and are fully defined in the edmx SSDL. I tried to qualify the call with a few things (adding the SSDL namespace to the function name - BlahModel.Store.blah (3), using the "execute procedure" and "call" SQL keywords, etc.).

, , CommandText, / CommandText. - , ?

!

+3
1

. CommandText SQL/Transact-SQL/PL/SQL.

0

Source: https://habr.com/ru/post/1752350/


All Articles