using System; using System.Collections.Generic; using System.Text; using Activizr.Basic.Interfaces; using Activizr.Database; namespace Activizr.Logic.Support { public class TemporaryIdentity: IHasIdentity { public TemporaryIdentity (int temporaryId) { this.temporaryId = temporaryId; } static public TemporaryIdentity GetNew() { return new TemporaryIdentity (PirateDb.GetDatabaseForWriting().GetTemporaryIdentity()); // This is actually an Insert, not a Select } private int temporaryId; public int Identity { get { return temporaryId; } } } }