コード例 #1
0
ファイル: SqlGenerator.cs プロジェクト: BrianGoff/BITS
		/// <summary>
		/// Generate ANSI compliant Sql statements from .NET data types.
		/// </summary>
		/// <param name="tableName">Name of the Sql table to publish to.</param>
		/// <param name="data">Data to publish to the Sql table.</param>
		/// <param name="columnData">Column details of the Sql table that the data will be published to.</param>
		public SqlGenerator(string tableName, DataTable data, DataTable columnData)
		{
			SqlGenerationDataTable sqlGenerationDataTable = new SqlGenerationDataTable(tableName, data, columnData);
			_sqlGeneration = sqlGenerationDataTable;
		}
コード例 #2
0
ファイル: SqlGenerator.cs プロジェクト: BrianGoff/BITS
		/// <summary>
		/// Generate ANSI compliant Sql statements from .NET data types.
		/// </summary>
		/// <param name="tableName">Name of the Sql table to publish to.</param>
		/// <param name="data">Data to publish to the Sql table.</param>
		/// <param name="convert">Set to TRUE to convert the raw unformatted data to valid data types, set to FALSE if the data is correctly formatted.</param>
		public SqlGenerator(string tableName, DataTable data, bool convert)
		{
			SqlGenerationDataTable sqlGenerationDataTable = new SqlGenerationDataTable(tableName, data, convert);
			_sqlGeneration = sqlGenerationDataTable;
		}