hi,
i have an entity-model file (edmx) file which contains few tables and few stored procedures.
how can i call those stored procedures that are mapped to functions? i thought it should be trivial, and i do see the mapping in the edmx file, but i can't figure how to use it in the code.
here is one mapping example:
<Function Name="pa_crud_broker_ADD" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
<Parameter Name="BrokerId" Type="int" Mode="InOut" />
<Parameter Name="Name" Type="nvarchar" Mode="In" />
<Parameter Name="Identifier" Type="nvarchar" Mode="In" />
</Function>
<FunctionImport Name="pa_crud_broker_ADD" ReturnType="Collection(Int32)">
<Parameter Name="BrokerId" Mode="InOut" Type="Int32" />
<Parameter Name="Name" Mode="In" Type="String" />
<Parameter Name="Identifier" Mode="In" Type="String" /></FunctionImport>
<FunctionImportMapping FunctionImportName="pa_crud_broker_ADD" FunctionName="PAEntities.store.pa_crud_broker_ADD" />
i would appreciate any help.
Thanks.