Beispiel #1
0
        /// <summary>
        /// 返回一个Sql节
        /// </summary>
        /// <param name="sql"></param>
        /// <returns></returns>
        public SqlSection FromSql(string sql, IDictionary <string, object> parameters)
        {
            SqlSection section = new SqlSection(sql, dbProvider, this);

            return(section.AddParameters(parameters));
        }
Beispiel #2
0
        /// <summary>
        /// 返回一个Sql节
        /// </summary>
        /// <param name="sql"></param>
        /// <returns></returns>
        public SqlSection FromSql(string sql, params SQLParameter[] parameters)
        {
            SqlSection section = new SqlSection(sql, dbProvider, this);

            return(section.AddParameters(parameters));
        }