What programming language was used to write XXX?
NHibernate
//Add a Customer to the datastore //'sessionFactory' is a thread-safe object built once per application lifetime (can take seconds to build)//based on configuration files which control how database tables are mapped to C# objects//(e.g. which property maps to which column in a database table)////'session' is not thread safe and fast to obtain and can be thought of as a connection to the databaseusing (var session = sessionFactory.OpenSession()) ( //transaction represents a db transaction using (ITransaction transaction = session.BeginTransaction()) ( //The line below adds the customer to NHibernate's list of objects to insert to the database //but it doesn't execute SQL insert command at this stage*. //*if the Id field is generated by the database (e.g. an auto-incremented number) //then NHibernate will execute SQL INSERT when .Save is called session.Save(new Customer ( Id = Guid.NewGuid(), FirstName = ``Boss'', Age = 50 )); //The call below will execute the SQL INSERT and commit the transaction transaction.Commit(); )) //Retrieve the Customer from the database, modify the record and update the databaseusing (var session = sessionFactory.OpenSession())(
C