I have a procedure I need to call it from my code using EFCore
Below is my procedure structure
Create PROCEDURE [dbo].[BusinessOrders]
(
@StatusID INT ,
@BusinessBranchID INT,
@LangID INT ,
@PurchasedOn NVARCHAR(MAX) ,
@Search NVARCHAR(MAX),
@PageSize INT,
@PageNo INT
)
AS
BEGIN
END
This is my code function
public IEnumerable<BusinessOrderEntity.BODB> GetBusinessOrders(int StatusID, int BusinessBranchID, int LangID, string PurchasedOn = "", string Search = "", int PageSize = 10, int PageNo = 1)
{
// here need to call procedure.
}
I've find different solution but it does not working with my context class