Insert Update using Nhibernate
Posted
by Pankaj
on Stack Overflow
See other posts from Stack Overflow
or by Pankaj
Published on 2010-03-18T06:00:01Z
Indexed on
2010/03/18
7:11 UTC
Read the original article
Hit count: 175
nhibernate
|insert
Hello All
I am inserting Product on database, My Product Model like this
public class Product
{
public int ProductID { get; set; }
public string ProductNumber { get; set; }
public string Description { get; set; }
public string KeyWords { get; set; }
}
here my ProductNumber is coming on counter table
Table- Counter
Field- Counter- int
when product insert then its ProductNumber come from Counter table, after insert counter increase 1. In update counter not increase.
How can i insert Product in such situation using Nhibernate?
Thanks
© Stack Overflow or respective owner