Guest User

Untitled

a guest
Jun 2nd, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.61 KB | None | 0 0
  1. Session session = new Session();
  2.             try
  3.             {
  4.                 session.Connect();
  5.                 XPQuery<dane> lista= session.Query<dane>();
  6.  
  7.                 var pytanie= (from l in lista
  8.                             select l).ToList();
  9.  
  10.                 return pytanie;
  11.             }
  12.             catch (Exception ex)
  13.             {
  14.  
  15.                 messagebox.show(ex);
  16.             }
  17.             finally
  18.             {
  19.                 if (session.IsConnected)
  20.                 {
  21.                     session.Disconnect();
  22.                     session = null;
  23.                 }
  24.             }
Advertisement
Add Comment
Please, Sign In to add comment