I’m using the ADO.NET Entity Framework as the data access layer in my application, but I’m not sure where I should be putting business logic. Are there any best practices or samples available that illustrate how to integrate business logic with Entity Framework entities?
After Edit:
I want any samples with implement calculation,security,rules and other things in BLL …
Any article and samples..!
You can use entities as business objects. Implement Business Logic msdn library article explain how do it. If you follow the link you will found code samples to fit business logic during Property Changes and when Saving Changes.
Remember that you can extend EF with partial classes with custom business logic.:
Customizing Objects msdn article also covers this topic.
On n-tier solutions for Rich Internet Applications (RIA) you can add Business Logic to the Domain Service