LINQ to SQL的:如何插入记录到一个看法?

问题描述:

我使用LINQ to SQL中的数据库操作,我试图在一个视图执行插入操作,它抛出错误,

I'm using Linq to SQL for the Database operations, and am trying to perform insert operations in a VIEW, It throws the Error,

XXt threw exception:  System.InvalidOperationException: Can't perform Create, 
Update or Delete operations on 'Table(XXX)' because it has no primary key.



如何使用LINQ使用C#中插入记录查看?

How to use LINQ to insert a record into View using C#?

感谢。

您不能插入到视图。您只能插入表击>

您可以做到这一点。 - 见下文

You can do this - see below.