Link to home
Start Free TrialLog in
Avatar of Charles Baldo
Charles BaldoFlag for United States of America

asked on

Need LINQ that does stored procedure

Hello

I have this as  a  stored procedure

CREATE PROCEDURE [dbo].[spCreateInvoiceReceipt]
AS
BEGIN
      SET NOCOUNT ON;
      declare @id bigint
      INSERT INTO  InvoiceReceipt (CreateDate)
      VALUES (getdate())
      SET @id=SCOPE_IDENTITY()
     update InvoiceReceipt set ReceiptNumber=@id where id=@id
END


How can I do this with Entity Frameworks LINQ?
ASKER CERTIFIED SOLUTION
Avatar of Raja Jegan R
Raja Jegan R
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Charles Baldo

ASKER

Thank you worked well
Welcome, glad to assist..