Java Codes ,C#.NET Codes , ASP.NET Codes ,VB.NET Codes ,Oracle Database Administration, Real Application Cluster , Remote Support, Cloud Services , Networks , SAP ABAP
AddObjectmethod of the Model class entity collection. The following code snippet show how to perform the insert.
SingleOrDefaultmethod on the Model's entities collection. Let's say we want the functionality of updating/deleting a record on a single page then we will first have to select the record based on the ID, then update/delete the selected record.
Contact) based on ID can be done as:
Contactobject will contain the required values.
DeleteObjectfunction. The following code snippet demonstrates the same: