static public DevicePreferredTransferSyntax Load(IPersistenceContext read, ServerEntityKey key)
        {
            var broker = read.GetBroker <IDevicePreferredTransferSyntaxEntityBroker>();
            DevicePreferredTransferSyntax theObject = broker.Load(key);

            return(theObject);
        }
 static public DevicePreferredTransferSyntax Insert(DevicePreferredTransferSyntax entity)
 {
     using (var update = PersistentStoreRegistry.GetDefaultStore().OpenUpdateContext(UpdateContextSyncMode.Flush))
     {
         DevicePreferredTransferSyntax newEntity = Insert(update, entity);
         update.Commit();
         return(newEntity);
     }
 }
        static public DevicePreferredTransferSyntax Insert(IUpdateContext update, DevicePreferredTransferSyntax entity)
        {
            var broker        = update.GetBroker <IDevicePreferredTransferSyntaxEntityBroker>();
            var updateColumns = new DevicePreferredTransferSyntaxUpdateColumns();

            updateColumns.DeviceKey               = entity.DeviceKey;
            updateColumns.ServerSopClassKey       = entity.ServerSopClassKey;
            updateColumns.ServerTransferSyntaxKey = entity.ServerTransferSyntaxKey;
            DevicePreferredTransferSyntax newEntity = broker.Insert(updateColumns);

            return(newEntity);
        }