Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对ALTER TABLEENTITY FRAMEWORK 有疑问。我想删除表的复合键,在其中编辑数据,然后想再次保留主键。我的疑问是:
ALTER TABLE
我不知道有什么办法……我认为鉴于 LINQ 正试图将数据库的结构抽象出来,这可能不是正确的工具。
您必须只打开到数据库的连接并对原始数据库执行 ALTER TABLE 语句。