static public RequestAttributes Insert(RequestAttributes entity)
 {
     using (var update = PersistentStoreRegistry.GetDefaultStore().OpenUpdateContext(UpdateContextSyncMode.Flush))
     {
         RequestAttributes newEntity = Insert(update, entity);
         update.Commit();
         return(newEntity);
     }
 }
        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);
        }