the element 'functionimport' in namespace "http://schemas.microsoft.com/ado/2008/09/edm" has some invalid child argument ReturnType in entity framework FunctionImport element

คำถาม the element 'functionimport' in namespace "http://schemas.microsoft.com/ado/2008/09/edm" has some invalid child argument ReturnType in entity framework FunctionImport element

  • Wednesday, December 14, 2011 7:59 AM
     
     

    Hi,

    I would like to use ReturnType attribute in FunctionImport element for retrieve multiple resultset , for this I change CSDL by refer article: http://blogs.msdn.com/b/adonet/archive/2011/06/30/walkthrough-multiple-result-sets-from-stored-procedure.aspx 

    But I didn't find ReturnType attribute as mention in article for 

            <FunctionImport Name="CheckEmployeeLogin">

                <ReturnType Type=Collection(EmployeeModel.CheckEmployeeLogin_Result)/> //it gives error 

                <Parameter Name="LOGINUSERNAME" Mode="In" Type="String" />

                <Parameter Name="COMPANYID" Mode="In" Type="String" />

              </FunctionImport>

     

    So please give me solution assp.

    Thanks


    prakash

All Replies

  • Friday, February 24, 2012 4:28 PM
     
     

    @prakash,

    I am also seeing this same issue as I attempt to bring in multiple return sets with EF 4.2.  Have you been able to determine the fix for this issue you encountered?

    Thanks!