NHibernate.LinQ error with Identity column in SQLServer (team.sfi.vn)

published 2 months, 19 days ago, submitted by lehoangdunglehoangdung(195) 2 months, 20 days ago

I mapped a table to NHibernate (which's id is Indentity type), and write a repository method using NHibernate.LinQ and it throw error. Maybe it because of Identity Id.

4 comments | category: | Views: 163

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:

Comments:

posted by MalkirMalkir(80) 2 months, 19 days ago

Pretty sure current nhibernate linq does not implement .ToUpper(). Depending upon the database you're using you could try .Contains or .Equals, or just do a straight comparison since the majority of databases are case insensitive anyway.

posted by lehoangdunglehoangdung(195) 2 months, 19 days ago

@Makir: thanks! I change to .Equals and it work well!

posted by suharmokosuharmoko(0) 2 months, 19 days ago

I agree with that statement because many factors influence it

posted by intelte.ruintelte.ru(0) 2 months, 17 days ago

Many factors influence on it its right.;)

information Login or create an account to comment on this story