c# - Deleting Rows in a Database Table -


what's easiest way delete rows in database table using entity framework 6?

i pulled down ef6 via nuget , have been able query rows db. however, not seem have access context.<entity>.delete() or context.<entity>.deleteobject() methods, shown examples online.

got working.

var query = <linq query>;  context.<entity>.removerange(query); context.savechanges(); 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -