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

submitted by lehoangdunglehoangdung(490) 2 years, 2 months 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: 166

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(96) 2 years, 2 months ago 0

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.

Reply

posted by lehoangdunglehoangdung(490) 2 years, 2 months ago 0

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

Reply

posted by suharmokosuharmoko(0) 2 years, 2 months ago 0

I agree with that statement because many factors influence it

Reply

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

Many factors influence on it its right.;)

Reply

information Login or create an account to comment on this story