Here's an example of how to accomplish this using Entity Framework in C#:
main.cs1660 chars52 lines
This code uses the Split() method to split each SKU into an array of parts using the / character as a delimiter. It then loops through each part of the SKU and saves it to the database as a new product using Entity Framework. Finally, it sends an email complaining about any errors encountered during the product splitting operation using the .NET SmtpClient class.
gistlibby LogSnag