Does adapter.SaveEntityCollection work only on fetched entities or can it be applied to newly created entity collection ?
Dim sharedRoleQueries As New EntityCollection(New SharedRoleQueryEntityFactory)
For idx As Integer = 0 To shareWithRoleIds.Count - 1
sharedRoleQueries.Add(SharedRoleQueryManager.Create(fromUserId, queryId, CType(shareWithRoleIds(idx), Integer), Now))
Next
SharedRoleQueryManager.SaveCollection(sharedRoleQuery)
SaveCollection just calls adapter's SaveEntityCollection method, but nothing happens. Since help talks only about working with collections after fetching it I wonder if need to loop through each entity in collection and save it?