Linq to Sql说“客户"项已经存在.选择一个不同的名字 [英] Linq to Sql saying that item by 'Customer' already exists. Choose a different name

查看:71
本文介绍了Linq to Sql说“客户"项已经存在.选择一个不同的名字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用svn的同时,我一直在使用linq转至sql文件.最新的是我的dbml文件显示有错误,指出

I have been going round and round with a linq to sql file while using svn for quite some time. The latest is that my dbml file shows as having an error which states that

名为客户"的项目已经存在.请选择其他名称.

An item named "Customer" already exists. Please choose a different name.

然后再次重复.实际上,它几乎针对每个对象都说了这一点.我的解决办法是什么?我曾尝试重命名一个名为Customer的客户,但这并没有解决.我不知道该去哪里解决此问题.我去了.dbml文件,没有看到任何重复,我去了.dbml.layout文件,也没有看到任何重复.

And then it repeats that again. In fact, it says it for almost every object. What is my fix? I have tried renaming the one named Customer, but that didn't fix it. I don't know where to go to fix this. I went to the .dbml file and don't see any duplication, and I went to the .dbml.layout file and didn't see any duplication there either.

推荐答案

弄清楚了.不知何故存在重复的关联.令我感到困惑的部分是,它看起来像是在指向一个对象,而看起来却不是在指向关联.

Figured it out. Somehow there were duplicate associations. The part that confused me was that it looked like it was pointing to an object and didn't look like it was pointing to the association.

这篇关于Linq to Sql说“客户"项已经存在.选择一个不同的名字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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