asp.net - It has a DefiningQuery but no InsertFunction element... err -


This thing is driving me crazy, and the error is quite meaningless for me:

EntitySet is unable to update 'TableB' because there is no definition in the element to support the current definition and no element exists.

My tables are kept in this way:

 Tables Int IDA (Identity, Primary Key) ... TableBit IDA (FK for TableA.idA) Int Velvet 

The tableback does not have the primary key defined in the SQL server. The unit framework has imported the table and union and both fields are set as keys. But when I try to include in the table, this error will arise!

What's wrong ??


Edit: As suggested, Alex was the solution:

  1. Right click on the admx file, open
  2. Remove the fully defined form
  3. Change the name of the store: Schema = "Dbo" will generate an error saying schema = "dbo" (Otherwise, the code name is invalid)
  4. Remove the Store: Property named: Remove

I left the key because it was because it was ok for me that both columns are part of the key.

Well when a table is faced without a primary key, Is considered as the form.

and view storage model \ entity set [n] \ define an element in the EDMX file (open in an XML editor to view).

When you have a defining unit, it becomes readable only until you add modification function.

But you have two options:

Change the key definition:

ol>

  • Or add appropriate amendment work
  • In your case, I recommend (1).


    Comments

    Popular posts from this blog

    asp.net - Javascript/DOM Why is does my form not support submit()? -

    sockets - Delphi: TTcpServer, connection reset when reading -

    javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -