using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace migrate_data
{
    public class Bom
    {
        private string _sql = "Insert Into z_bom(dspecId, old, [new], partNumber, viewLocation) values({0}, '{1}', '{2}', '{3}', '{4}')";

        public string InsertStatement(DataRow row)
        {
            return string.Format(_sql, row.ItemArray[0].ToString().Replace("'", ""), row.ItemArray[1].ToString().Replace("'", ""), row.ItemArray[2].ToString().Replace("'", ""), row.ItemArray[3].ToString().Replace("'", ""), row.ItemArray[4].ToString().Replace("'", ""));
        }



    }
}
