I'm using Entity Framework for the first time, and I need to add business logic before inserting new objects into the db, here are the options I thought about:
Which method is best practice when managing business logic on Entity Framework
Have a look at validation with EF - the validation is inside the entities themselves.
It's a very clean way to organise your project.
When you have POCOs, the obvious place for entity validation is in the POCO itself.
It makes sense that any validation of the Customer object is actually in the Customer class.
Validatemethod which will check that state of the whole entitiy is correct.
But all this works only if you always use the whole entity. Once you start to use partial updates and other features you will still have to handle validation elsewhere. That is another +1 for validation on demand.