If you try to call delete and supply an empty collection, the TP pops. Probably a simple fix with a pattern match or similar can fix this: -
System.ArgumentException: The input sequence was empty.
Parameter name: source
at Microsoft.FSharp.Collections.SeqModule.Head[T](IEnumerable`1 source)
at FSharp.Azure.StorageTypeProvider.Table.TableRepository.splitIntoBatches(FSharpFunc`2 createTableOp, IEnumerable`1 entities) in c:\\Users\\Isaac\\Source\\Repos\\AzureStorageTypeProvider\\src\\FSharp.Azure.StorageTypeProvider\\Table\\TableRepository.fs:line 156
at FSharp.Azure.StorageTypeProvider.Table.TableRepository.executeBatchOperation(FSharpFunc`2 createTableOp, CloudTable table, IEnumerable`1 entities) in c:\\Users\\Isaac\\Source\\Repos\\AzureStorageTypeProvider\\src\\FSharp.Azure.StorageTypeProvider\\Table\\TableRepository.fs:line 213
at FSharp.Azure.StorageTypeProvider.Table.TableRepository.deleteEntities[a](String connection, String tableName, a[] entities) in c:\\Users\\Isaac\\Source\\Repos\\AzureStorageTypeProvider\\src\\FSharp.Azure.StorageTypeProvider\\Table\\TableRepository.fs:line 223
Steps to reproduce:
Build solution running build.fsx
Create a new script as follows: -
#r @"bin\FSharp.Azure.StorageTypeProvider.dll"
#r @"bin\Microsoft.WindowsAzure.Storage.dll"
open FSharp.Azure.StorageTypeProvider
open System
type Local = AzureTypeProvider<"Local">
Local.Tables.employee.Delete []
Write a unit test in the test project as well to prove that this is fixed.
If you try to call delete and supply an empty collection, the TP pops. Probably a simple fix with a pattern match or similar can fix this: -
Steps to reproduce:
build.fsx
Write a unit test in the test project as well to prove that this is fixed.