Closed tanguy-c closed 4 years ago
You can achieve this by doing:
con.Delete(new Product { Id = 1 });
I agree it's a bit hacky. Perhaps adding support for deletion by ID would be nice.
Why not use?
con.DeleteMultiple<Product>(product => product.Id == 1);
On a second thought I think both options are viable and do not warrant a new method to be added.
True ! :) And I didn't know DeleteMultiple existed. (Could be nice to have it in a documentation) Anyway, nice job guys ! For now i'm only using FluentMap, but I keep Dommel in mind. Have a nice day, and maybe quarantine ;)
Hi ! It's not an issue but it would be nice to have deletion by id and ids As you do "con.Get\(1);" you could do "con.Delete\(1);"