Linq-To-SQL CreateDatabase does not create stored procedures

to-SQL DataContext, and I run:

datacontext.CreateDatabase()

This works great.

I recently dragged a stored procedure onto a method bar. I thought this stored procedure now became part of the datacontext and will be restored when the database is created.

This is not like that. Does anyone know why and how to do this?

+3
source share
2 answers

DataContext.CreateDatabase , , . . , , . .

SP http://msdn.microsoft.com/en-us/library/bb399420.aspx

+5

, Sql Server Management Studio ( ) LINQ.

0

Source: https://habr.com/ru/post/1791383/


All Articles