如何有效地处理主数据更新,像PTA(Point In Time Architecture)设计 [英] How to handle Master Data Update effectively, Something like PTA(Point In Time Architecture) design

查看:168
本文介绍了如何有效地处理主数据更新,像PTA(Point In Time Architecture)设计的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在设计时,我遇到了一个基于VB.NET的Winforms应用程序的问题。

While designing, I encountered a problem for my VB.NET based Winforms Application.

我将数据库中的一些主数据作为我的软件的第一步循环。

I am storing some master data in my database as a first step of my software cycle.

主数据将用于在我的软件的优惠券部分中进行购买和销售条目。

That master data will be used to make Purchase and Sale entry in my software's Voucher section.

假设用户在购买部分选择一个项目,我从数据库中检索所有项目的信息,然后保存,购买凭证将保存在该信息中。

Suppose user selects an item in Purchase section, I retrieve all the item's information from database and then on save, Purchase voucher is saved with that information.

现在假设用户更改主项目详细信息,即价格,重量。

Now suppose, user changes master item details, i.e. price, weight.

它对新条目工作正常。当我打开旧条目时,它将显示新的价格和重量,虽然它应该显示旧的价格和重量,因为这个条目是旧的。

It works fine for new entry. When I open old entry, it will show the new price and weight though it should show old price and weight as this entry is old.

我如何避免这种设计/我的应用程序中的工作流问题?

How can I avoid this design/workflow problem in my application?

推荐答案

您应该规范化数据。不要在数据库中存储数据副本。创建实体并仅存储它们之间的关系。

You should normalize your data. Do not store copies of data in your database. Create entities and store only relations between them.

阅读有关数据库规范化的一些教程

Read some tutorials on database normalization

这篇关于如何有效地处理主数据更新,像PTA(Point In Time Architecture)设计的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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