using NHibernate.SqlCommand; SqlString sql = new SqlString("SELECT * FROM mytable"); SqlString substringSql = sql.Substring(0, 10); Console.WriteLine(substringSql.ToString()); // Output: "SELECT * "This code uses the NHibernate package/library to create a SqlString object with a sample SQL statement. It then calls the Substring method on the SqlString object to extract the first 10 characters, and prints the resulting SqlString to the console. Overall, NHibernate.SqlCommand.SqlString is a useful class for manipulating SQL strings in NHibernate projects.