Click or drag to resize

SQLSelectInto Methods

The SQLSelectInto type exposes the following members.

Methods
  NameDescription
Public methodAddColumn(String, OleDbType)
Adds a column (to be copied) to the class where both the source and destination names, and data types match. If either names and/or types do not match match, use AddColumn(String, OleDbType, String, OleDbType) instead.
Public methodAddColumn(String, OleDbType, String, OleDbType)
Adds a column (to be copied) to the class where the source and destination names and/or data types do not match. If both match, use AddColumn(String, OleDbType) instead.
Public methodAddExpression
Adds a SQL expression string to the SELECT clause inserting into the specified column.
Public methodAddLiteral
Adds a literal value to the SELECT clause inserting into the specified column.
Public methodStatic memberCreateRecordCopyInstance
Create an instance of a SQLSelectInto object appropriate for copying a record or records in the same table. The method will use GetSchemaInfo(String, SchemaInfoType) to determine the table's columns and set up the SQLSelectInto object for copying all columns except those indicated as IsIdentity.

Using the returned SQLSelectInto object you can use AddColumn(String, OleDbType, String, OleDbType), AddExpression(String, String, Boolean), or AddLiteral(Object, String, OleDbType) to replace a destination column source if changes are required. To perform the actual copy, call Execute(IDatabase, SQLHelperFlags, String).

Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExecute(IDatabase, SQLHelperFlags, String)
Execute the SQL INSERT INTO ... SELECT FROM statement. Note that embedded functions are always resolved.
Public methodExecute(IDatabase, SQLHelperFlags, String, Int32)
Execute the SQL INSERT INTO ... SELECT FROM statement. Note that embedded functions are always resolved.
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodToString(DBMSType)
Returns the INSERT INTO ... SELECT statement
Top
Extension Methods
  NameDescription
Public Extension MethodEqualValue
Determines if the object value is equal to another object. If the two objects are null, then this returns true. There is special handling for guid comparisons (since a guid could be a string formatted in up to 3 different ways). If the special guid handling is not performed, then the object.Equals method is used.
(Defined by EAPUtil.)
Top
See Also