コード例 #1
0
        static public ExternalRequestQueue Load(IPersistenceContext read, ServerEntityKey key)
        {
            var broker = read.GetBroker <IExternalRequestQueueEntityBroker>();
            ExternalRequestQueue theObject = broker.Load(key);

            return(theObject);
        }
コード例 #2
0
 static public ExternalRequestQueue Insert(ExternalRequestQueue entity)
 {
     using (var update = PersistentStoreRegistry.GetDefaultStore().OpenUpdateContext(UpdateContextSyncMode.Flush))
     {
         ExternalRequestQueue newEntity = Insert(update, entity);
         update.Commit();
         return(newEntity);
     }
 }
コード例 #3
0
        static public ExternalRequestQueue Insert(IUpdateContext update, ExternalRequestQueue entity)
        {
            var broker        = update.GetBroker <IExternalRequestQueueEntityBroker>();
            var updateColumns = new ExternalRequestQueueUpdateColumns();

            updateColumns.RequestType    = entity.RequestType;
            updateColumns.RequestXml     = entity.RequestXml;
            updateColumns.InsertTime     = entity.InsertTime;
            updateColumns.Revision       = entity.Revision;
            updateColumns.ScheduledTime  = entity.ScheduledTime;
            updateColumns.DeletionTime   = entity.DeletionTime;
            updateColumns.StateXml       = entity.StateXml;
            updateColumns.OperationToken = entity.OperationToken;
            updateColumns.RequestId      = entity.RequestId;
            updateColumns.ExternalRequestQueueStatusEnum = entity.ExternalRequestQueueStatusEnum;
            ExternalRequestQueue newEntity = broker.Insert(updateColumns);

            return(newEntity);
        }