阅读背景:

如何使用Linq-to-SQL只插入新记录?

来源:互联网 

I have to insert some data periodically in my SQL Server database. But the feeds where I read the data repeats some data that was inserted before. When I use Linq-to-SQL to insert into the DB either some data is duplicated, or a primary key violation exception is raised, depending on the primary key.I have to insert some data periodically in my S




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: