I have an ASP.NET 4.5 web forms application using model binding. I've created a business logic layer as per this tutorial: http://www.asp.net/web-forms/tutorials/data-access/model-binding/adding-business-logic-layer
So the InsertMethod of my FormView is in the appropriate BLL class. The BLL class is defined as per above example in my OnCallingDataMethods method of the code-behind. The OnItemInserted method however, I've defined directly in my page's code-behind class, as I feel it is not business logic per say but rather front-end type logic to give the user feedback based on the completed insert.
My problem is that the AffectedRows property in the OnItemsInserted method is always -1, regardless of the Insert's result. So I can never validate whether the insert was successful or not as per this MSDN example: http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.formview.iteminserted.aspx
Is the AffectedRows property faulty or not populated in the FormViewInsertedEventArgs collection when using the new model binding technique of ASP.Net 4.5 Web Forms model binding? Or am I doing something wrong?