Visual Studio和自动存储过程创建 [英] Visual studio and automatic stored procedure creation

查看:115
本文介绍了Visual Studio和自动存储过程创建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在考虑在sql server中创建自动存储过程的最佳方法。目前我通常每次都要为解决方案重新创建数据库,因为我正在更改entityframeworks(第一代码)结构,测试流程。实现自动程序创建的最佳方法是什么,如果我为了不同的测试和设计目的而共享代码而不是多个pc ..



创建一个.bat通过所有.sql脚本或者是否有更有效的实体框架方式?

Hi, i am thinking of the best way to create automatically stored procedures in a sql server. At the moment i am usually recreating the database for the solution every time since i am changing the entityframeworks(first-code) structure, testing the process. What would be the best way to implement automatic procedure creation, if i am to share the code un multiple pc's for different testing and designing purposes..

Create a .bat that goes through all .sql scripts or is there a more efficient way with entityframework?

推荐答案

由于您使用的是EF Code First方法,为什么不使用Code第一次迁移



http:// msdn .microsoft.com / zh-CN / data / jj591621.aspx [ ^ ]
Since you are using EF Code First Approach , Why not to go with "Code First Migrations"

http://msdn.microsoft.com/en-us/data/jj591621.aspx[^]


这篇关于Visual Studio和自动存储过程创建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆