LINQ-to-SQL CompiledQuery.Compile() with Update, Delete, Insert?

后端 未结 3 821
野性不改
野性不改 2020-12-19 06:25

All,

So I\'ve got all my select queries in LINQ-to-SQL converted to using CompiledQueries to speed things up. Works great so far for select statements, but I haven\

3条回答
  •  既然无缘
    2020-12-19 07:07

    I think of the three only insert would make sense to be able to compile and re-use because delete is trivially simple (DELETE FROM Table WHERE Key...) and UPDATE only updates the fields that have changed and so varies per update operation.

    [)amien

提交回复
热议问题