private void AssertCoreHistoryCommon(CoreHistory hist, IWithHistory ent, HistoryActionType action, DateTime dtLower, DateTime dtUpper) { Assert.AreEqual(InformationCenter.States.TransactionInfo.ApplicationTransactionIdentifier.Value, hist.ApplicationTransactionID); Assert.AreEqual(ent.EntityTypeID, hist.EntityTypeID); Assert.AreEqual(ent.EntityID, hist.EntityID); Assert.AreEqual(action, hist.ActionType); Assert.Greater(TimeSpan.FromSeconds(1), dtLower.Subtract(hist.Timestamp)); Assert.Greater(TimeSpan.FromSeconds(1), hist.Timestamp.Subtract(dtUpper)); }
Table5History IWithHistory <Table5History> .CreateHistoryEntity(CoreHistory coreHistory) { Table5History ret = new Table5History(); ret.ID = coreHistory.ID; ret.Table5ID = this.ID; ret.PropertyInt = this.PropertyInt; return(ret); }
Table2History IWithHistory <Table2History> .CreateHistoryEntity(CoreHistory coreHistory) { Table2History ret = new Table2History(); ret.ID = coreHistory.ID; ret.Table2ID = this.ID; ret.PropertyString = this.PropertyString; return(ret); }
LanguageSetHistory IWithHistory <LanguageSetHistory> .CreateHistoryEntity(CoreHistory coreHistory) { LanguageSetHistory ret = new LanguageSetHistory(); ret.ID = coreHistory.ID; ret.LanguageSetID = this.ID; ret.Name = this.Name; ret.CultureName = this.CultureName; return(ret); }
/// <summary> /// Create a new CoreHistory object. /// </summary> /// <param name="id">Initial value of ID.</param> /// <param name="entityTypeID">Initial value of EntityTypeID.</param> /// <param name="entityID">Initial value of EntityID.</param> /// <param name="timestamp">Initial value of Timestamp.</param> /// <param name="applicationTransactionID">Initial value of ApplicationTransactionID.</param> public static CoreHistory CreateCoreHistory(int id, int entityTypeID, int entityID, global::System.DateTime timestamp, int applicationTransactionID) { CoreHistory coreHistory = new CoreHistory(); coreHistory.ID = id; coreHistory.EntityTypeID = entityTypeID; coreHistory.EntityID = entityID; coreHistory.Timestamp = timestamp; coreHistory.ApplicationTransactionID = applicationTransactionID; return(coreHistory); }
Table1History IWithHistory <Table1History> .CreateHistoryEntity(CoreHistory coreHistory) { Table1History ret = new Table1History(); ret.ID = coreHistory.ID; ret.Table1ID = this.ID; ret.PropertyInt = this.PropertyInt; ret.PropertyString = this.PropertyString; ret.PropertyDatetime = this.PropertyDatetime; return(ret); }
Table4History IWithHistory <Table4History> .CreateHistoryEntity(CoreHistory coreHistory) { Table4History ret = new Table4History(); ret.ID = coreHistory.ID; ret.Table4ID = this.ID; ret.PropertyString = this.PropertyString; if (this.DualTable1 != null) { ret.Table1ID = this.DualTable1.ID; } if (this.MonoTable2 != null) { ret.Table2ID = this.MonoTable2.ID; } if (this.MetaTable3 != null) { ret.Table3ID = this.MetaTable3.ID; } return(ret); }
ResourceContentHistory IWithHistory <ResourceContentHistory> .CreateHistoryEntity(CoreHistory coreHistory) { ResourceContentHistory ret = new ResourceContentHistory(); ret.ID = coreHistory.ID; ret.ResourceContentID = this.ID; ret.LanguageSetID = this.LanguageReference.GetValueAutoLoaded().ID; ret.ResourceKeyID = this.KeyReference.GetValueAutoLoaded().ID; ret.Content = this.Content; return(ret); }
IList <IHistory> IWithHistory.CreateHistoryEntities(CoreHistory coreHistory) { return(this.CreateHistoryEntities(coreHistory)); }
public virtual IList <IHistory> CreateHistoryEntities(CoreHistory coreHistory) { return(new IHistory[] { ((IWithHistory <ResourceContentHistory>) this).CreateHistoryEntity(coreHistory) }); }
public virtual IList <IHistory> CreateHistoryEntities(CoreHistory coreHistory) { return(new IHistory[] { ((IWithHistory <LanguageSetHistory>) this).CreateHistoryEntity(coreHistory) }); }
/// <summary> /// There are no comments for CoreHistorySet in the schema. /// </summary> public void AddToCoreHistorySet(CoreHistory coreHistory) { base.AddObject("CoreHistorySet", coreHistory); }