0
 Followers
1
 Like

Delete All function for entity

New

Hi All, 


As we are having functions like 

1.  Create<Entity>

2. CreateOrUpdate<Entity>

3. Update<Entity>

4. Get<Entity>

5. Get<Entity>ForUpdate

6. Delete<Entity>


If we can have Delete All function which takes list as input and delete all the records from Database which all  are in list base on ID. 


Why am asking is there times where we can have requirements to delete data from Particular entity .


Thanks & Regards,

Ramakrushna Rao Seera



Created on 7 Aug (2 weeks ago)
Comments (1)

Hi,

It could be useful, but dangerous at the same time, specially in Production environments.

You can however achieve that using a SQL query, and encapsulate it in a reusable Server Action. Your SQL query would look like this

Cheers

views
25
Followers
0