lehoangdung posted on November 21, 2009 00:07

I mapped a table to NHibernate (which's id is Indentity type), and write a repository method using NHibernate.LinQ as below:

 

And the code listing below is test unit:

 

And error when testing:

 

But when I use Expression:

 

Every thing is ok, test unit run correctly! I don't know why? If anyone know how to fix it, please help!

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Page List

    Calendar

    «  September 2010  »
    MoTuWeThFrSaSu
    303112345
    6789101112
    13141516171819
    20212223242526
    27282930123
    45678910
    View posts in large calendar

    Recent Comments

    Disclaimer
    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    © Copyright 2010 SFI.VN Team