 <p>Have you looked at <code>ObjectDataSource</code>? You configure it by providing the the names of your C# methods responsible for the CRUD operations. Then in your methods you can do whatever you want.</p>