using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace OSGeo.MapGuide.ObjectModels.Common { /// /// Represents a list of long transactions /// public interface ILongTransactionList { /// /// Gets the long transactions in this list /// IEnumerable Transactions { get; } } /// /// Represents a long transaction /// public interface ILongTransaction { /// /// Gets the name of the long transaction /// string Name { get; } /// /// Gets the description of the long transaction /// string Description { get; } /// /// Gets the owner of the long transaction /// string Owner { get; } /// /// Gets the creation date of the long transaction /// string CreationDate { get; } /// /// Gets whether the long transaction is active /// bool IsActive { get; } /// /// Gets whether the long transaction is frozen /// bool IsFrozen { get; } } partial class FdoLongTransactionList : ILongTransactionList { public IEnumerable Transactions { get { foreach (var tx in this.Transactions) yield return tx; } } } partial class FdoLongTransactionListLongTransaction : ILongTransaction { } }