示例#1
0
文件: SqlExpr.cs 项目: fjiang2/sqlcon
        internal static SqlExpr ParameterName(string name)
        {
            SqlExpr exp = new SqlExpr().Next(name.SqlParameterName());

            exp.AddParam(name, null);
            return(exp);
        }
示例#2
0
文件: SqlExpr.cs 项目: fjiang2/sqlcon
        internal static SqlExpr AddParameter(string columnName, string parameterName)
        {
            SqlExpr exp = new SqlExpr()
                          .Next("[" + columnName + "]")
                          .Next("=")
                          .Next(parameterName.SqlParameterName());

            exp.AddParam(parameterName, columnName);

            return(exp);
        }