Hi, this is the stored procedure:
<FunctionImport Name="Sp_CustomerLoadAll" EntitySet="Customers" ReturnType="Collection(NopSolutions.NopCommerce.BusinessLogic.Data.Customer)">
<Parameter Name="StartTime" Mode="In" Type="DateTime" />
<Parameter Name="EndTime" Mode="In" Type="DateTime" />
<Parameter Name="Email" Mode="In" Type="String" />
<Parameter Name="Username" Mode="In" Type="String" />
<Parameter Name="DontLoadGuestCustomers" Mode="In" Type="Boolean" />
<Parameter Name="PageSize" Mode="In" Type="Int32" />
<Parameter Name="PageIndex" Mode="In" Type="Int32" />
<Parameter Name="TotalRecords" Mode="InOut" Type="Int32" />
</FunctionImport>
...
<FunctionImportMapping FunctionImportName="Sp_CustomerLoadAll" FunctionName="NopSolutions.NopCommerce.BusinessLogic.Data.Store.Nop_CustomerLoadAll" />
<Function Name="Nop_CustomerLoadAll" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
<Parameter Name="StartTime" Type="datetime" Mode="In" />
<Parameter Name="EndTime" Type="datetime" Mode="In" />
<Parameter Name="Email" Type="nvarchar" Mode="In" />
<Parameter Name="Username" Type="nvarchar" Mode="In" />
<Parameter Name="DontLoadGuestCustomers" Type="bit" Mode="In" />
<Parameter Name="PageSize" Type="int" Mode="In" />
<Parameter Name="PageIndex" Type="int" Mode="In" />
<Parameter Name="TotalRecords" Type="int" Mode="InOut" />
</Function>
And here is the call, which throws the exception:
var result = base.ExecuteFunction<Customer>("Sp_CustomerLoadAll", startTimeParameter,
endTimeParameter, emailParameter, usernameParameter, dontLoadGuestCustomersParameter,
pageSizeParameter, pageIndexParameter, totalRecordsParameter).ToList();
Why must i add here the new column of the customer?