/// <summary> /// Determine if the passed field needs to be squoted or not. /// </summary> /// <param name="fieldValue">The field value to test.</param> /// <returns>True if it does, false otherwise.</returns> private static bool NeedToSQuote(TableFieldValue fieldValue) { return(fieldValue.SQuoteIt != TableFieldValue.SQuoteBehavior.NoSQuote && (fieldValue.FieldValue.GetType() == typeof(string) || fieldValue.FieldValue.GetType() == typeof(DateTime) || fieldValue.SQuoteIt == TableFieldValue.SQuoteBehavior.YesSQuote) ); }
///// <summary> ///// If set, append SQL to get a new identity value into this variable name using SCOPE_IDENTITY() ///// </summary> //public string NewIdName //{ // get { return _newIdName; } // set { _newIdName = value; } //} /// <summary> /// Add a field to be generated. /// </summary> /// <param name="fieldValue">Object containing the field data.</param> public void AddFieldValue(TableFieldValue fieldValue) { _values.Add(fieldValue); }