Ejemplo n.º 1
0
        public static string GetMappedStaticSql(string sqlName)
        {
            SqlItem item = GetMappedStatement(sqlName);

            if (item == null)
            {
                return(sqlName);
            }

            return(item.dynamic(null));
        }
Ejemplo n.º 2
0
        private static string ParseDynamicSql(string mapSql, IDictionary <string, object> p, IDictionary <string, string> where)
        {
            SqlItem info = StatementParser.GetMappedStatement(mapSql);

            if (info == null)
            {
                return(mapSql);
            }

            return(info.dynamic(p));//会修改参数p的列表
        }