Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Session session = new Session();
- try
- {
- session.Connect();
- XPQuery<dane> lista= session.Query<dane>();
- var pytanie= (from l in lista
- select l).ToList();
- return pytanie;
- }
- catch (Exception ex)
- {
- messagebox.show(ex);
- }
- finally
- {
- if (session.IsConnected)
- {
- session.Disconnect();
- session = null;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment