Documentation

This example uses Oracle HR schema.

Code

Method to update based on a model.

//Method to update based on a model.
using (var Ecrud = new ECRUD.OracleMapping())
{
    var Employee = Ecrud.Find("FIRST_NAME = 'WILLIAN' AND LAST_NAME = 'VALE'", DataBase.HR);

    Employee.Email = "WILLVALE";
    Employee.Salary = 30000;

    var Updateed = Ecrud.Update(Employee, DataBase.HR);
}

Code Async

Method to update based on a model.

//Method to update based on a model.
using (var ECRUD = new ECRUD.OracleMapping())
{
    var Employee = await ECRUD.FindAsync("FIRST_NAME = 'WILLIAN' AND LAST_NAME = 'VALE'", DataBase.HR);

    Employee.Email = "WILLVALE";
    Employee.Salary = 30000;

    var Updateed = await ECRUD.UpdateAsync(Employee, DataBase.HR);
}