Ejemplo n.º 1
0
        static public RequestAttributes Load(IPersistenceContext read, ServerEntityKey key)
        {
            var broker = read.GetBroker <IRequestAttributesEntityBroker>();
            RequestAttributes theObject = broker.Load(key);

            return(theObject);
        }
Ejemplo n.º 2
0
 static public RequestAttributes Insert(RequestAttributes entity)
 {
     using (var update = PersistentStoreRegistry.GetDefaultStore().OpenUpdateContext(UpdateContextSyncMode.Flush))
     {
         RequestAttributes newEntity = Insert(update, entity);
         update.Commit();
         return(newEntity);
     }
 }
Ejemplo n.º 3
0
        static public RequestAttributes Insert(IUpdateContext update, RequestAttributes entity)
        {
            var broker        = update.GetBroker <IRequestAttributesEntityBroker>();
            var updateColumns = new RequestAttributesUpdateColumns();

            updateColumns.SeriesKey                = entity.SeriesKey;
            updateColumns.RequestedProcedureId     = entity.RequestedProcedureId;
            updateColumns.ScheduledProcedureStepId = entity.ScheduledProcedureStepId;
            RequestAttributes newEntity = broker.Insert(updateColumns);

            return(newEntity);
        }