本文介绍了避免在C#中重复数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.

我有一个名为PlateSerial的文本框,我插入了唯一的序列号.这不是自动生成的.插入序列号后,它将被带入NumberPlate数据库.

我想要的是,如果我放置一个已经插入数据库的序列号.它不应该允许我这样做.

那我该怎么做.

请帮忙.另外,如果可能的话,我更喜欢代码示例.

谢谢大家

Hello everyone.

I have a textbox called PlateSerial were i insert unique serial numbers. This is not auto generated. Once the serial is inserted it is taken to the NumberPlate database.

What i want is that if i put a serial that has already been inserted in the database. It should not allow me to do so.

So how do i do this.

Please help. In addition if possible i would prefer code examples.

Thanks everyone

推荐答案


这篇关于避免在C#中重复数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-01 22:17