/// <summary> /// Lets you efficiently bulk many entity to the database. /// </summary> /// <param name="transactionManager">NOTE: The transaction manager should be null for the web service client implementation.</param> /// <param name="entityList">The entities.</param> /// <remarks> /// After inserting into the datasource, the Nettiers.AdventureWorks.Entities.Address object will be updated /// to refelect any changes made by the datasource. (ie: identity or computed columns) /// </remarks> public override void BulkInsert(TransactionManager transactionManager, Nettiers.AdventureWorks.Entities.TList <Address> entityList) { WsProxy.AdventureWorksServices proxy = new WsProxy.AdventureWorksServices(); proxy.Url = Url; try { proxy.AddressProvider_BulkInsert(Convert(entityList)); } catch (SoapException soex) { System.Diagnostics.Debug.WriteLine(soex); throw soex; } catch (Exception ex) { System.Diagnostics.Debug.WriteLine(ex); throw ex; } }
/// <summary> /// Lets you efficiently bulk many entity to the database. /// </summary> /// <param name="transactionManager">NOTE: The transaction manager should be null for the web service client implementation.</param> /// <param name="entityList">The entities.</param> /// <remarks> /// After inserting into the datasource, the Nettiers.AdventureWorks.Entities.Address object will be updated /// to refelect any changes made by the datasource. (ie: identity or computed columns) /// </remarks> public override void BulkInsert(TransactionManager transactionManager, Nettiers.AdventureWorks.Entities.TList<Address> entityList) { WsProxy.AdventureWorksServices proxy = new WsProxy.AdventureWorksServices(); proxy.Url = Url; try { proxy.AddressProvider_BulkInsert(Convert(entityList)); } catch(SoapException soex) { System.Diagnostics.Debug.WriteLine(soex); throw soex; } catch (Exception ex) { System.Diagnostics.Debug.WriteLine(ex); throw ex; } }