Exemplo n.º 1
0
 /// <summary>
 /// Easy to access database,you can get any data that you want.
 /// </summary>
 /// <param name="sql">Any sql text</param>
 /// <param name="trans">Transaction</param>
 /// <returns>Any data list</returns>
 public List <dynamic> List(string sql, DbTransaction trans = null)
 {
     if (trans == null)
     {
         return(NativeSql.ExecuteDynamic(sql));
     }
     else
     {
         return(NativeSql.ExecuteDynamic(trans, sql));
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Easy to access database,you can get any data that you want.
 /// </summary>
 /// <param name="cmdText">Any sql text</param>
 /// <param name="trans">Transaction</param>
 /// <returns>Any data list</returns>
 public List <dynamic> List(string cmdText, DbTransaction trans, CommandType cmdType = CommandType.Text,
                            params DbParameter[] cmdParms)
 {
     if (trans == null)
     {
         return(NativeSql.ExecuteDynamic(cmdText, cmdType, cmdParms));
     }
     else
     {
         return(NativeSql.ExecuteDynamic(trans, cmdText, cmdType, cmdParms));
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Easy to access database,you can get any data that you want.
 /// </summary>
 /// <param name="cmdText">Any sql text</param>
 /// <param name="trans">Transaction</param>
 /// <returns>Any data list</returns>
 public List <dynamic> List(string cmdText, CommandType cmdType = CommandType.Text,
                            params DbParameter[] cmdParms)
 {
     return(NativeSql.ExecuteDynamic(cmdText, cmdType, cmdParms));
 }