Exemple #1
0
        private void AddInsertSetting(string columnName, object columnValue, DbType dbType, bool isExpression)
        {
            InsertSetting setting = new InsertSetting();

            setting.ColumnName    = columnName;
            setting.ParameterName = Utility.PrefixParameter("ins_" + columnName, provider);
            setting.Value         = columnValue;
            setting.IsExpression  = isExpression;
            setting.DataType      = dbType;
            Inserts.Add(setting);
        }
Exemple #2
0
        private void AddInsertSetting(string columnName, object columnValue, DbType dbType, bool isExpression)
        {
            InsertSetting setting = new InsertSetting
            {
                ColumnName    = columnName,
                ParameterName = provider.FormatParameterNameForSQL("ins_" + columnName),
                Value         = columnValue,
                IsExpression  = isExpression,
                DataType      = dbType
            };

            Inserts.Add(setting);
        }