Exemple #1
0
 /// <summary>
 /// Create a Command from stored procedure.
 /// </summary>
 /// <param name="db">IDB.</param>
 /// <param name="cmdStr">sql procedure's name to call.</param>
 /// <returns></returns>
 public static SqlDAUtil FromProcedure(SqlDB db, string cmdStr)
 {
     return(new SqlDAUtil(db, CommandType.StoredProcedure, cmdStr));
 }
Exemple #2
0
 public static SqlDAUtil FromText(this SqlDB db, string cmdStr)
 {
     return(SqlDAUtil.FromText(db, cmdStr));
 }
Exemple #3
0
 /// <summary>
 /// Create a Command from sql text.
 /// </summary>
 /// <param name="db">IDB.</param>
 /// <param name="cmdStr">command string.</param>
 /// <returns></returns>
 public static SqlDAUtil FromText(SqlDB db, string cmdStr)
 {
     return(new SqlDAUtil(db, CommandType.Text, cmdStr));
 }
Exemple #4
0
 public static SqlDAUtil FromProcedure(this SqlDB db, string procedure)
 {
     return(SqlDAUtil.FromProcedure(db, procedure));
 }