Added support for Windows 7 multi-touch, ribbon controls, and taskbar extensibility features.Improvements in Windows Presentation Foundation (WPF).For a comprehensive list of enhancements to ASP.NET go here.
Web forms support for new AJAX library improvements including built-in support for content delivery networks (CDNs).
Additional features include better n-tier support with self-tracking entities, customizable code generation using T4 templates, model first development, an improved designer experience, better performance, and pluralization of entity sets. It has many new features, including persistence ignorance and POCO support, foreign key associations, lazy loading, test-driven development support, functions in the model, and new LINQ operators. NET objects and Language Integrated Query (LINQ).
Easier debugging including dump debugging, Watson minidumps, mixed mode debugging for 64 bit and code contracts.New memory mapped file and numeric types.Performance improvement including better multicore support, background garbage collection, and profiler attach on server.Improvements in Common Language Runtime (CLR) and Base Class Library (BCL).NET Framework 4 provides the following new features and improvements: Applications that are based on earlier versions of the Framework will continue to run on the version targeted by default. NET Framework 4 works side by side with older Framework versions. NET Framework is Microsoft's comprehensive and consistent programming model for building applications that have visually stunning user experiences, seamless and secure communication, and the ability to model a range of business processes. (rR) //row no longer exits, vlaues can not be recoverd by call rejectchanges ListBo圆.Items.Add(r.ToString()) Įlse if (r.RowState = DataRowState.Deleted)ĭataColumn itemColumn = new DataColumn("Desc", () //values are deleted but row exists in table and values can be recovered table.Rejectchanges() if rowstate is unchanged () //phyically removes the row if rowstat is set to added
However Remove Method does not effect datasource when Update Method Data Adapter is called, you need to call Delete Method of Data Row.ĭataTable table = new DataTable("table") ĭataColumn idColumn = new DataColumn("id",ĭataColumn itemColumn = new DataColumn("desc", Remove Method DataRowCollection physically removes dataRow and wont be recovered. The Delete method physically removes DataRow only if it was added to the DataTable since the last AcceptChanges() was called ,Otherwise,it sets RowState=RowState.Deleted and set current values to Null. Values are deleted but row exists in table and values can be recovered by using DataTable.Rejectchanges().ĭataRow.RowSt ate become "deleted" and current values are are set to Null. If delete() method is called on a row, after last Acceptchanges() was called,