예제 #1
0
 public static void Main()
 {
     User u = null;
     Db.Transaction(delegate {
         u = new User() {
             FirstName = "First",
             LastName = "Application",
             IdNr = 1
         };
     });
     Console.WriteLine("Created user: "+ u.Name);
 }
예제 #2
0
 public static void Main()
 {
     User u = null;
     Db.Transaction(delegate {
         u = new User {
             FirstName = "Second",
             LastName = "Application",
             IdNr = 2
         };
     });
     Console.WriteLine("Created user: "******"select u from user u"))
         Console.WriteLine("Found user: " + fu.Name);
 }