static void Main(string[] args) { // Save purchase order to DB. This will automatically create a DB structure for the full 4010 version the first time it is executed. // NOTE: edit the connection string in app.config, by default it looks for a local SQL Server instance SaveToDb.Run(); // Pull the latest purchase order from the DB PullFromDb.Run(); }
public static void Run([BlobTrigger("samples-workitems/{name}", Connection = "")] Stream myBlob, string name, ILogger log) { var service = new SaveToDb(); var excelNames = service.ExcelName(name); service.LicneseListPrice(myBlob); foreach (var excelName in excelNames) { log.LogInformation($" Excel:{excelName.ExcelName} 存到資料庫成功"); } }