예제 #1
0
        public void CreateSqlServerBulkUpdateByConnection()
        {
            using (var conn = new SqlConnection())
            {
                var factory    = new SqlServerBulkActionFactory(conn);
                var bulkUpdate = factory.GetBulkUpdate() as SqlServerBulkUpdate;

                bulkUpdate.Should().NotBeNull();
            }
        }
예제 #2
0
        public void CreateSqlServerBulkInsertByConnection()
        {
            using (var conn = new SqlConnection())
            {
                var factory    = new SqlServerBulkActionFactory(conn);
                var bulkInsert = factory.GetBulkInsert(SqlBulkCopyOptions.UseInternalTransaction) as SqlServerBulkInsert;

                bulkInsert.BulkCopyOptions.Should().Be(SqlBulkCopyOptions.UseInternalTransaction);
            }
        }