Skip to content

Instantly share code, notes, and snippets.

@MarioBinder
Created September 26, 2012 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarioBinder/3789063 to your computer and use it in GitHub Desktop.
Save MarioBinder/3789063 to your computer and use it in GitHub Desktop.
SQL Procedure -EF Code First
db.Database.SqlCommand("dbo.News_Insert @Title, @Body, @NewsStatusId",
new SqlParameter("Title", news.Title),
new SqlParameter("Body", news.Body),
new SqlParameter("NewsStatusId", news.NewStatus.Id));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment