public virtual void WriteDate(System.DateTime d, bool writeInTransaction) { byte[] bytes = byteArrayConverter.DateToByteArray(d); if (NeoDatis.Odb.OdbConfiguration.IsDebugEnabled(LogId) && canLog) { NeoDatis.Tool.DLogger.Debug("writing Date " + NeoDatis.Tool.Wrappers.OdbTime.GetMilliseconds (d) + " at " + GetPosition()); } if (!writeInTransaction) { io.WriteBytes(bytes); } else { GetSession().GetTransaction().ManageWriteAction(io.GetCurrentPosition(), bytes); EnsureSpaceFor(NeoDatis.Odb.Core.Layers.Layer2.Meta.ODBType.Date); } bytes = null; }