public static ScalarHelper <T> BeginScalar <T>(this DbHelperFactory factory, string text) { if (factory.CheckExistingConnection()) { return(new ScalarHelper <T>(text, factory.DbConnection, factory.DbTransaction)); } return(new ScalarHelper <T>(text, factory.ConnectionString)); }
public static XmlReaderHelper BeginXmlReader(this DbHelperFactory factory, string text) { if (factory.CheckExistingConnection()) { return(new XmlReaderHelper(text, factory.DbConnection, factory.DbTransaction)); } return(new XmlReaderHelper(text, factory.ConnectionString)); }
public static NonQueryHelper BeginNonQuery(this DbHelperFactory factory, string text) { if (factory.CheckExistingConnection()) { return(new NonQueryHelper(text, factory.DbConnection, factory.DbTransaction)); } return(new NonQueryHelper(text, factory.ConnectionString)); }