dynamic sql generation is not supported against multiple base tables

后端 未结 4 1660
死守一世寂寞
死守一世寂寞 2020-12-21 16:53

I tried to add a new row to a Table in an SQL DB, but I had a problem :

dynamic sql generation is not supported against multiple base tables

4条回答
  •  有刺的猬
    2020-12-21 17:43

    With SqlCommandBuilder you can generate CRUD operation on entity

    Requirement of use is to define Select command before inserting , and include in the select command your primary Key.

    Link : http://msdn.microsoft.com/fr-fr/library/system.data.sqlclient.sqlcommandbuilder(v=vs.80).aspx

    MSDN Definition : Automatically generate Transact-SQL statements to update single table

    Nota : In your Update selectCommand, you defined left join query, and so you can create left join query, replace this query with just select.

提交回复
热议问题