Dynamic Linq with Where and ObjectParameter doesn't work

Hello !
 I have this code :
Imports System.Linq.Dynamic
Dim mylist As IQueryable(Of Myobject)
Dim ob1 As New List(Of ObjectParameter)
Dim dynstr as string=string.empty
dynstr += "it.id= @id"
ob1.Add(New ObjectParameter("id", 26))
mylist=context.MyObjects.Where(dynstr,ob1.ToArray()).Tolist
I'm expecting that MyList contain only 1 object with id=26 , but MyList contains all the objects inside MyObjects. So it seems that the Where clause has no effect.
And it's strange because if i change the dynstr to simply dynstr+="it.id=26" , everything works ok . It seems that the objectparameter list "doesn't communicate" with dynstr.?????????
What's wrong ? Thank you !

apology for not understanding your question correctly.
" It seems that the objectparameter list "doesn't communicate" with dynstr.?????????"
probably you have to change
mylist=context.MyObjects.Where(dynstr,ob1.ToArray()).Tolist
to below perhaps? since obj1 is already a collection.  i have not tried it though.
mylist=context.MyObjects.Where(dynstr,ob1).Tolist
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

Similar Messages

  • Opening files with Illustrator and photoshop doesn't work, i have to drag the files from finder in to the program. This problem appears after opening 4 a 5 files.

    Opening files with Illustrator and photoshop doesn't work, i have to drag the files from finder in to the program.
    This problem appears after opening 4 a 5 files, rebooting helps another 4 a 5 times and appears again.

    I'd recommend reposting in the Boot Camp forum, that is where the Boot Camp and Windows gurus hang out.
    Good luck.

  • I tried to airdrop Civilization V from a Macbook Pro with Mountain Lion to a Macbook Pro with Lion and it doesn't work. Other apps have but Civ V has not.

    I tried to airdrop Civilization V from a Macbook Pro with Mountain Lion to a Macbook Pro with Lion and it doesn't work. Other apps have but Civ V has not.

    Likely because it's a not self contained and/or it's game and copy protected, so install it via the developers instructions instead, which likely means it will have ot be uninstalled off the first machine, the developer contacted for a new license key before installing on the newer machine.
    If you want it on both machines, you will need to likely buy another license.
    Most developers are fine with transfering license between machines, you have to contact them.
    They just want to make sure it's only on one machine so they are not getting robbed.

  • HT1296 When I sync my iphone with Windows 7, the contact moves to my computer, but the contact is not complete. No phone numbers. What am I doing wrong? I have also tried sync-ing with Yahoo, and that doesn't work either.

    When I sync my iphone with Windows 7, the contact moves to my computer, but the contact is not complete. No phone numbers. What am I doing wrong? I have also tried sync-ing with Yahoo, and that doesn't work either.

    The music sync is one way - computer to iphone.  The only exception is itunes purchases.  File>Transfer Purchases
    It has always been very basic to always maintain a backup copy of your computer for just such an occasion.  Use your backup copy to move everything to your new computer.

  • TP T60 with VISTA and dock doesn't work with DVI

    Hi, at the first excuse my English.
    I am beginner ]:->
    I have Lenovo T60 with vista. I have advance dock from lenovo. DVI on dock doesn't work correctly. External display is distort, noisy.
    After start of Vista is all right. But when I use blank white page monitor switch off and on in a circle. Monitor is in good order. Advence is in good order. (I change it 3 times).
    Thank you for help or inspiration how to find a solution.

    ok, i think i understand you now.   you have an advance dock with a third-party PCI graphics card and can't get it to work under vista.   my best recommendation is to try different drivers.   i am not 100% positive but your PCI card might have to have the same GPU as your T61 to be compatible.   perhaps someone else with more experience on this can help.
    ThinkStation C20
    ThinkPad X1C · X220 · X60T · s30 · 600

  • Hi, I am wondering why my iphone won't send pictures through messages, I have MMS on and I have tried sending it with 3G on aswell and still doesn't work. Someone please help me :)

    Hi, I am wondering why my iphone won't send pictures through messages, I have MMS on and I have tried sending it with 3G on aswell and still doesn't work. Someone please help me :)

    Hey lozza567,
    Thanks for the question. I understand that you are experiencing issues sending MMS messages. The following resource may provide a solution:
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/ts2755
    Issues with sending and receiving MMS
    You will need these to send and receive MMS:
    - An iPhone 3G or later.
    - iOS 3.1 or later.
    - A cellular data connection. MMS isn't available if you are using only Wi-Fi.
    - A domestic MMS plan from your cellular provider. You may need an international messaging plan to send MMS to an international contact. Contact your carrier for more information.
    - A roaming MMS when using a cellular provider's network different from your billing cellular provider's network. Learn more about roaming and contact your carrier for more information.
    To resolve issues with sending and receiving MMS, follow these steps first
    1. Go to Settings and turn airplane mode off.
    2. Go to Settings > Messages and turn MMS Messaging on.
    3. Go to Settings > Cellular and turn Cellular Data on.
    4. Go to Settings > Cellular and turn Data Roaming on if you are roaming on a cellular provider network different from your billing provider's network.
    5. Verify that you have a cellular data connection in the status bar at the top left of your iPhone.
    6. Go to Settings and turn Wi-Fi off. Open Safari and navigate to www.apple.com to verify that you have a data connection. Turn Wi-Fi back on to continue using Wi-Fi for other features. If your cellular data connection isn't available, follow these steps.
    7. Verify that you can send and receive SMS. If you are unable to send and receive SMS, see the "Issues with sending and receiving SMS" section, above.
    8. MMS may not be available while on a call. Only 3G and faster GSM networks support simultaneous data and voice calls. Learn more about which network your phone supports.
    9. Restart your iPhone.
    10. Tap Settings > General > Reset > Reset Network Settings on your iPhone.
    11. Reseat your SIM card.
    If you are still unable to send or receive MMS, follow these steps
    1. Make sure that the contact trying to message you isn't blocked in Settings > Messages > Blocked.
    2. Go to Settings > Messages and turn on group messaging if you are sending a group message.
    3. Make sure that you are using the area code with the contact's phone number. When sending messages internationally, you also need the contact's international code.
    4. Verify a "Pay as you go" MMS plan has enough available balance. Contact your carrier if unsure of your MMS plan or available balance.
    5. If the issue occurs with a specific contact or contacts, back up or forward important messages and delete your current messaging threads with the contact. Create a new message to the contact and try again.
    6. If the issue occurs with a specific contact or contacts, delete and re-create the contact from the Contacts application. Create a new message to the newly created contact and try again.
    7. Back up and restore your iPhone as new.
    8. If your carrier has recently ported your phone number, the porting process may not be complete. Contact your carrier to confirm that the porting process is complete.
    9. Contact your carrier to verify that you are provisioned to send SMS and are in an area with cellular coverage.
    10. Contact your carrier to verify that there are no blocks or filters placed on your wireless account preventing you from sending SMS.
    11. Your carrier may require APN settings to be modified to use MMS. Learn more about when you should adjust APN settings.
    Thanks,
    Matt M.

  • I am trying to use livetype with persian alphabet and it doesn't work. what should I do?

    I am trying to use livetype with persian alphabet and it doesn't work. what should I do?

    There is no more LiveType with Motion 5.  You may want to go to the Final Cut Express forum, as that's the only place it's existed for the last few years.

  • My IPOD Classic Video 5. Gen. showed videos, but now it does no longer show them, instead i see a black picture on my IPOD and it doesn`t work. I have to restart it every time, i try it. i restore the software with itunes, but the problem still exists.

    My IPOD Classic Video 5. Gen. showed videos, but now it does no longer show them, instead i see a black picture on my IPOD and it doesn`t work. I have to restart it every time, i try it. i restore the software with itunes, but the problem still exists.
    The Videos are showed up front 4 months, but now they are no longer to be seen. When you star a video first the hard drive starts, but then it stops and hangs up. I have to restart it, starting with the apple logo....

    Here is what worked for me:
      My usb hub, being usb2, was too fast. I moved the wire to a usb port directory on my pc. That is a usb1 port which is slow enough to run your snyc.

  • After update my iPad 2 with IOS 6.0.1 the botton mute and sound + doesn't work...any solution for this??? Thanks

    After update my iPad 2 with IOS 6.0.1 the botton mute and sound + doesn't work...any solution for this??? Thanks

    There are numerous reports of this issue happening on iPhones. It may be a glitch that will need a new update. Some find that a full shut-down and restart fixes that problem, but not always.

  • I just downlouded the latest version of the Muse CC and it doesn't work well, it freezes all the time, in particular with the tools. Example the selection tool doesen't wor at all.

    I just downlouded the latest version of the Muse CC and it doesn't work well, it freezes all the time, in particular with the tools. Example the selection tool doesn't wor at all. Is there any solution for this problem?

    Hi!
    I restarted the computer, but the same issue happens again. When I move my mouse over some object or tool, it doesn’t come active at all (only some of the tools works) When I try to change “site properties”, I can’t choose tablet or phone mode or even I can’t select the checkboxes, only thing what I can do is change the numbers (high and width) . After all the main problem is that I can’t select some of the items or functions by mouse, but only by the keyboard.

  • After installing FF4 scrolling up and down with the touch-pad doesn't work on my Acer Aspire anymore.

    Neither does it work to browse forwards or backwards with the double gesture. Zooming in and out works fine though.
    Everything still works in IE8 and in Google Chrome.
    The touch-pad uses an ALPS-driver.

    Thanks, I don't have the file tp4table.dat on my computer. Currently I've reversed to 3.6 and will run it as long as it works. Really don't like 4.0 anyway... May be forced to use IE again if I don´t find anything better. Tried Chrome and worked well at first but now back and forth doesn't work there either and that's so annoying.

  • My iPhone is stolen and iCloud doesn't work on it ..could i disactivated my iPhone with the serial number on the box?

    my iPhone is stolen and iCloud doesn't work on it ..could i disactivated my iPhone with the serial number on the box?

    myriama wrote:
    my iPhone is stolen and iCloud doesn't work on it ..could i disactivated my iPhone with the serial number on the box?
    No.
    What to do if your iOS device is lost or stolen
    See here  >  http://support.apple.com/kb/HT5668

  • I have lightroom 4 and it doesn't work with d4s raw images? what can I do?

    i have lightroom 4 and it doesn't work with d4s raw images? what can I do?

    That model begin to be supported only in the very latest version of Lightroom, version 5.4. You will either need to upgrade Lightroom, or else use the latest version of the free Adobe DNG converter (version 8.4) to create digital negative copies of your raw images. Then you can import those DNG files into the Lightroom that you have now. The choice is yours.

  • I am trying to "personalize my cs2 software online download with the serial number from my original boxed cd set and it didn't work. I tried using the download serial number and that doesn't work either. Need help!

    I am trying to "personalize" my cs2 software online download with the serial number from my original boxed cd set and it didn't work. I tried using the download serial number and that doesn't work either. Need help!

    I understand that you have also used the download link & serial number from Adobe - CS2 Downloads, if still the CS2 is not working, then please refer to the system requirement for e.g System requirements | Photoshop
    The issue can be that the present operating system might not be compatible with the CS2.
    Regards
    Rajshree

  • Firefox crashing AND the scroll feature on my PC finger pad works with other browsers, but doesn't work on Firefox, which just happened since I updated. FRUSTRATING!

    Since I updated, Firefox is crashing daily. The finger scroll feature on my PC works with other browsers, but doesn't work on Firefox. It is also very, very slow, but other browsers aren't. I can't use it anymore until it's fixed.

    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    *Use the Filter bar at to top of the about:config page to locate a preference more easily.
    *Preferences that have been modified show as bold (user set).
    *Preferences can be reset to the default via the right-click context menu if they are user set
    *Preferences can be changed via the right-click context menu: Modify (String or Integer) or Toggle (Boolean)
    *http://kb.mozillazine.org/about:config

Maybe you are looking for

  • Font (times) not showing up in Dreamweaver, not in preferences font list

    I'm on a computer using 10.6.8, Snow Leopard and Dreamweaver CS5. When we apply a style of Times New Roman to the text, it remains in it's default state (sans serif). When we apply a font family style, including times and a default serif font, the fo

  • Invoice List Consolidation with different billing date

    Hi! Want to consolidation different billing date billings into 1 invoice list! but system will split it, How can I do?? Thanks

  • HTML and Perl in AIR

    AIR uses the webkit web 'server' for running HTML pages. On the http://webkit.org site, it seems to say that Perl is or was included in the AIR implementation. If Perl is included, would that allow us to do CGI calls? I'm creating some Intranet appli

  • MIME envelope with no attachment

    Hi Everyone, We have a SOAP receiver comm channel with the flag "keep attachments" checked. We noticed that if we send a SOAP message without an attachment it sends a regular XML file (no MIME envelope), but if we have an attachment we get the MIME e

  • "No sim card" message on ipad

    How do I get rid of the "no sim card" message on my ipad?