Sofique Uddin

Sofique Uddin

  • NA
  • 107
  • 10.6k

How to Pass StoreProcedure Multiple parameter in by EF

Feb 11 2017 4:14 AM
 
My Store Procedure (Single Parameter) :
 
ALTER procedure [dbo].[CountryInsert]
(
   @CountName varchar(50)
)
as
begin
   INSERT INTO [DevPayPension].[dbo].[Country]
   ([CountryName])
   VALUES
   (@CountName)
end
Entity Framework Code this is Single Parameter Pass: 
 
private void InsertData()
{
      using (var db = new EFPIMS())
      {
         db.CountryInsert(TextBox1.Text);
      }
}
 
Now How I can Pass Multiple parameter by Entity Framework ?? 
 
 

Answers (1)