Esempio n. 1
0
    /// <summary>
    /// Shows how to Update an existing record by Primary Key
    /// </summary>
    private void Update()
    {
        // first instantiate a new RoleMaster
        RoleMaster objRoleMaster = new RoleMaster();

        // assign the existing primary key(s)
        // of the record you want updated
        objRoleMaster.RoleId = 1;

        // assign values you want updated
        objRoleMaster.RoleDescription = "Administrator";
        objRoleMaster.CreatedOn       = DateTime.Now;
        objRoleMaster.CreatedBy       = "System";
        objRoleMaster.ModifiedOn      = DateTime.Now;
        objRoleMaster.ModifiedBy      = "abc";

        // finally, update an existing record
        objRoleMaster.Update();
    }