﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Oragon.Architecture.Data.UnityOfWork
{
	public class PersistenceQueueItem<T> where T : Architecture.Data.Entity
	{
		public T ItemToPersist { get; set; }

		public PersistenceAction Action { get; set; }

		public PersistenceQueueItem(T itemToPersist, PersistenceAction action)
		{
			this.ItemToPersist = itemToPersist;
			this.Action = action;
		}
	}
}
