在C#项目中管理数据库更改 [英] Managing DB Changes in a C# Project

查看:132
本文介绍了在C#项目中管理数据库更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过使用SQLServer08的Visual Studio 2010使用C#应用程序.
我试图提出一种简单的方法来管理数据库架构更改.手动更改所有内容不是一种选择,因为应该完全自动化所有内容以比较和修改数据库.我正在查看 Microsoft.SqlServer.Management.Smo 名称空间,如果我手动编码所有内容,这可能对我有用,但是我想知道是否有一种方法可以解决此问题,而无需重新设计轮子.看来这是一个非常标准的行业问题.有任何建议吗?

I am using a C# app via Visual studio 2010 that used SQLServer08.
I am trying to come up with a simple way to manage DB schema changes. Manually changing everything is not an option as everything should be fully automated to compare and modify the databases. I was looking at the Microsoft.SqlServer.Management.Smo namespace and this would probably work for me if i coded everything manually, but i want to know if there is a way to go about this without reinventing the wheel. It seems like a pretty standard industry problem. Any suggestions?

推荐答案

我使用Visual Studio 2010 DataBase项目.
实际上,这非常易于使用,并且可以让您通过模式将数据库与项目进行比较,反之亦然.
它还提供了一个数据比较工具,该工具还可以同步数据库上的数据.

我试图在网络上找到一个关于此的非常简单的教程,并且发现了以下内容:

VS 2010数据库项目简介 [ ^ ]

我认为这可能是一个很好的起点.

干杯!
亚历克斯
I use the Visual Studio 2010 DataBase project.
This is actually very easy to use and lets you schema compare the database with the project and the other way around.
It also delivers a Data Comparison tool that lets also sync the data on the database.

I tried to find a very simple tutorial about this on the web and I found this:

VS 2010 Database Project Introduction[^]

I think this may be a good start point.

Cheers!
Alex


这篇关于在C#项目中管理数据库更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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