entity framework - How to create a stored procedure in SQL Server Management Studio -


i have table in sql server, , want create stored procedure insert data table (userinformation).

i new this, please give me info how create stored procedure.

create stored procedure

create procedure  myprocedure  (@id  varchar(20),@search varchar(20) ) -- these parameters procedure  begin      select * yourtable id=@id  end 

or ( without parameters )

create procedure  myprocedure     begin      select * yourtable id=10  end 

calling stored procedure entity framework

// tbl_compmgmt class exctly result returned  var mgtlist = db.executestorequery<tbl_compmgmt>("exec getsortedmanagement @companay_id=" + compid).tolist(); 

Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo