Ejemplo n.º 1
0
 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));
 }
Ejemplo n.º 2
0
 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));
 }
Ejemplo n.º 3
0
 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));
 }