C# 클래스 ShpToSQL.SqlTableCreator

파일 보기 프로젝트 열기: dknezevic/ShpToSqlServer 1 사용 예제들

공개 메소드들

메소드 설명
Create ( DataTable schema ) : object
Create ( DataTable schema, int numKeys ) : object
CreateFromDataTable ( DataTable table ) : object
GetCreateFromDataTableSQL ( string tableName, DataTable table ) : string
GetCreateSQL ( string tableName, DataTable schema, int primaryKeys ) : string
GetPrimaryKeys ( DataTable schema ) : string[]
SQLGetType ( DataColumn column ) : string
SQLGetType ( DataRow schemaRow ) : string
SQLGetType ( object type, int columnSize, int numericPrecision, int numericScale ) : string
SqlTableCreator ( ) : System
SqlTableCreator ( SqlConnection connection ) : System
SqlTableCreator ( SqlConnection connection, SqlTransaction transaction ) : System

메소드 상세

Create() 공개 메소드

public Create ( DataTable schema ) : object
schema System.Data.DataTable
리턴 object

Create() 공개 메소드

public Create ( DataTable schema, int numKeys ) : object
schema System.Data.DataTable
numKeys int
리턴 object

CreateFromDataTable() 공개 메소드

public CreateFromDataTable ( DataTable table ) : object
table System.Data.DataTable
리턴 object

GetCreateFromDataTableSQL() 공개 정적인 메소드

public static GetCreateFromDataTableSQL ( string tableName, DataTable table ) : string
tableName string
table System.Data.DataTable
리턴 string

GetCreateSQL() 공개 정적인 메소드

public static GetCreateSQL ( string tableName, DataTable schema, int primaryKeys ) : string
tableName string
schema System.Data.DataTable
primaryKeys int
리턴 string

GetPrimaryKeys() 공개 정적인 메소드

public static GetPrimaryKeys ( DataTable schema ) : string[]
schema System.Data.DataTable
리턴 string[]

SQLGetType() 공개 정적인 메소드

public static SQLGetType ( DataColumn column ) : string
column System.Data.DataColumn
리턴 string

SQLGetType() 공개 정적인 메소드

public static SQLGetType ( DataRow schemaRow ) : string
schemaRow System.Data.DataRow
리턴 string

SQLGetType() 공개 정적인 메소드

public static SQLGetType ( object type, int columnSize, int numericPrecision, int numericScale ) : string
type object
columnSize int
numericPrecision int
numericScale int
리턴 string

SqlTableCreator() 공개 메소드

public SqlTableCreator ( ) : System
리턴 System

SqlTableCreator() 공개 메소드

public SqlTableCreator ( SqlConnection connection ) : System
connection System.Data.SqlClient.SqlConnection
리턴 System

SqlTableCreator() 공개 메소드

public SqlTableCreator ( SqlConnection connection, SqlTransaction transaction ) : System
connection System.Data.SqlClient.SqlConnection
transaction System.Data.SqlClient.SqlTransaction
리턴 System