Abstracts ADO.NET batching to maintain the illusion that a single logical batch
exists for the whole session, even when batching is disabled.
Provides transparent
This will be useful once ADO.NET gets support for batching. Until that point no code exists that will do batching, but this will provide a good point to do error checking and making sure the correct number of rows were affected.
configuration.Configure("path/to/hibernate.cfg.xml");
If this ConnectionProvider is being Finalized (
If any subclasses manage resources that also need to be disposed of this method should be overridden, but don't forget to call it in the override.
List results = session.CreateCriteria(typeof(Parent))
.Add( Example.Create(parent).IgnoreCase() )
.CreateCriteria("child")
.Add( Example.Create( parent.Child ) )
.List();
concat(?1, ?2) to concatenate two strings
p1 and p2. Target SQL function will be dialect-specific, e.g. (?1 || ?2) for
Oracle, concat(?1, ?2) for MySql, (?1 + ?2) for MS SQL.
Each dialect will define a template as a string (exactly like above) marking function
parameters with '?' followed by parameter's index (first index is 1).
This method assumes that the name is not already Quoted. So if the name passed
in is
If the aliasName is already enclosed in the OpenQuote and CloseQuote then this method will return the aliasName that was passed in without going through any Quoting process. So if aliasName is passed in already Quoted make sure that you have escaped all of the chars according to your DataBase's specifications.
If the columnName is already enclosed in the OpenQuote and CloseQuote then this method will return the columnName that was passed in without going through any Quoting process. So if columnName is passed in already Quoted make sure that you have escaped all of the chars according to your DataBase's specifications.
If the tableName is already enclosed in the OpenQuote and CloseQuote then this method will return the tableName that was passed in without going through any Quoting process. So if tableName is passed in already Quoted make sure that you have escaped all of the chars according to your DataBase's specifications.
If the schemaName is already enclosed in the OpenQuote and CloseQuote then this method will return the schemaName that was passed in without going through any Quoting process. So if schemaName is passed in already Quoted make sure that you have escaped all of the chars according to your DataBase's specifications.
This method checks the string
After the OpenQuote and CloseQuote have been cleaned from the string
The following quoted values return these results "quoted" = quoted "quote""d" = quote"d quote""d = quote"d
If this implementation is not sufficient for your Dialect then it needs to be overridden. MsSql2000Dialect is an example of where UnQuoting rules are different.