English 中文(简体)
核查该目标数据库图册是否符合实体框架中的内容?
原标题:Verify that target database schema complies with what s in Entity Framework?

我们有一个进程,即我们的数据库将文字改动(并用6月份的版本)用于我们的应用数据库,使其脱离编码基础。 它们在核算新栏目时表现良好,没有抹去现有数据,但偶尔还有一栏改称斜线,该栏完全照相。 因此,它们将对测试服务器数据库图示作一些改动,我们更新实体框架,以配合这些改动,然后实施我们的代码。 这一进程在部署时间时,可使用kay,,但<>除外。

我们已经建立了TFS,将成功建造的建筑部署到适当的服务器,但没有保证这一环境数据库得到更新。 如果目标数据库中存在额外领域/表/表/表/表/表/单,那么我们就不小心,但我们要改变建筑,以核实数据库中至少包含所有电子工具。

我看见, 问题,但我不需要该图谱。 此外,我们不希望它直接创建/改造数据库。 https://stackoverflow.com/questions/3815185/database-schema-change-and-entity-framework-4-in-release-production-environment> 问题似乎像它试图实现类似理想一样,但并非我们所期望实现的。 我们只是想进行某种一体化测试,以核实我们的EF版本,它将与目标图谋合作。

问题回答

我想知道,为什么你试图在不改变数据库的情况下部署你的申请。 你的申请取决于数据库,因此,部署工作应始终在数据库之后进行。 它希望你投入大量时间来进行验证,以确定你的不正确的部署过程(确定这一进程本身是正确的解决办法)。

不管怎样,你都可以创建某种数据库的“有效性”,但需要一些时间。 如果你使用EDMX文档,你可以将其开放为XML,并读到SLSD/a>部分,其中介绍所有预期表格、栏、关系、观点(以SlectTkou查询的形式),储存程序和职能。 您可以将XML部分与使用系统数据库的意见(sys.tables,sys.columns, ......)加以分类,询问这些物体是否在数据库中存在。

另一种做法是使用数据库分散器。 工具是比较你目前的测试数据库与目标数据库。 这将需要从指挥线上执行的工具,而且你必须将其产出加以分类,以找到突破性的变化。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...