Pregunta

I want to batch insert records with LLBLGen, following is T-SQL:

INSERT INTO Role(idt1) SELECT idt2 FROM template WHERE templateid = 1

How can I do this?

¿Fue útil?

Solución

You've got two options:

  1. Write a stored procedure
  2. Create the entities (LLBLGen Entities) one at a time and insert them. There is no equivalent to what you want to do en masse in LLBLGen. You can Update or Delete multiple records, but not insert.

You're best bet is probably the stored procedure, which you can obviously call from within LLBLGen Pro.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top