﻿using OKHOSTING.SQL.Schema;
using System.Collections.Generic;

namespace OKHOSTING.SQL.Operations
{
	/// <summary>
	/// Update records on the database
	/// </summary>
	/// <summary xml:lang="es">
	/// Actualiza registros en la base de datos
	/// </summary>
	public class Update: Operation
	{
		/// <summary>
		/// List of values that are being updated
		/// </summary>
		/// <summary xml:lang="es">
		/// Lista de valores que se van a actualizar
		/// </summary>
		public readonly List<ColumnValue> Set = new List<ColumnValue>();

		/// <summary>
		/// List of filters which will assess the condition to update records
		/// </summary>
		/// <summary xml:lang="es">
		/// Lista de filtros con los que se va a evaluar la condicion para actualizar los registros
		/// </summary>
		public readonly List<Filters.FilterBase> Where = new List<Filters.FilterBase>();
	}
}