The other workstation should shout "I HAVE INSERTED/UPDATED A CUSTOMER!!!!" and your workstation should listen the shout.
On Sun, Mar 20, 2011 at 7:13 PM, Robert <[email protected]> wrote: > Hey there, > > I am new with NHibernate, and stuck on a little problem, so i hope you > can help me. > > To start with, i created a new class for example "Customer" and did > the NHibernate mapping stuff. > This works all well, Create a new object of this class and the > database is updated as it should be. > > And here starts my problem: On startup of the software, a list with > all objects is created via > > public IList<Customer> GetAllCustomers() > { > using (ISession session = NHibernateHelper.OpenSession()) > { > ICriteria custCriteria = > session.CreateCriteria(typeof(Customer)); > IList<Customer>customerList = > custCriteria.List<Customer>(); > > return customerList; > } > } > > > But there are other workstations with this software too, who are > updating the database, so i have to keep this list updated all the > time. Any idead how to realize it? > > Kind regards > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > > -- Fabio Maulo -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
