• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# WsProxy.AdventureWorksServices类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中WsProxy.AdventureWorksServices的典型用法代码示例。如果您正苦于以下问题:C# WsProxy.AdventureWorksServices类的具体用法?C# WsProxy.AdventureWorksServices怎么用?C# WsProxy.AdventureWorksServices使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



WsProxy.AdventureWorksServices类属于命名空间,在下文中一共展示了WsProxy.AdventureWorksServices类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: GetByReferenceOrderIdReferenceOrderLineId

		/// <summary>
		/// 	Gets rows from the datasource based on the IX_TransactionHistoryArchive_ReferenceOrderID_ReferenceOrderLineID index.
		/// </summary>
		/// <param name="start">Row number at which to start reading.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="_referenceOrderId">Purchase order, sales order, or work order identification number.</param>
		/// <param name="_referenceOrderLineId">Line number associated with the purchase order, sales order, or work order.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="count">out parameter to get total records for query</param>	
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="Nettiers.AdventureWorks.Entities.TList&lt;TransactionHistoryArchive&gt;"/> class.</returns>
		public override Nettiers.AdventureWorks.Entities.TList<TransactionHistoryArchive> GetByReferenceOrderIdReferenceOrderLineId(TransactionManager transactionManager, System.Int32 _referenceOrderId, System.Int32 _referenceOrderLineId, int start, int pageLength, out int count)
		{
			try
			{
			WsProxy.AdventureWorksServices proxy = new WsProxy.AdventureWorksServices();
			proxy.Url = Url;
			WsProxy.TransactionHistoryArchive[] items = proxy.TransactionHistoryArchiveProvider_GetByReferenceOrderIdReferenceOrderLineId(_referenceOrderId, _referenceOrderLineId, start, pageLength, out count);
			
			return Convert(items); 
			}
			catch(SoapException soex)
			{
				System.Diagnostics.Debug.WriteLine(soex);
				throw soex;
			}
			catch(Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex);
				throw ex;
			}
		}
开发者ID:WildGenie,项目名称:NetTiers,代码行数:32,代码来源:WsTransactionHistoryArchiveProviderBase.generated.cs


示例2: GetPaged

		/// <summary>
		/// Gets a page of rows from the DataSource.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="whereClause">Specifies the condition for the rows returned by a query (Name='John Doe', Name='John Doe' AND Id='1', Name='John Doe' OR Id='1').</param>
		/// <param name="orderBy">Specifies the sort criteria for the rows in the DataSource (Name ASC; BirthDay DESC, Name ASC);</param>
		/// <param name="start">Row number at which to start reading.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">Number of rows in the DataSource.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of Nettiers.AdventureWorks.Entities.ErrorLog objects.</returns>
		public override Nettiers.AdventureWorks.Entities.TList<ErrorLog> GetPaged(TransactionManager transactionManager, string whereClause, string orderBy, int start, int pageLength, out int count)
		{
			try
			{
			whereClause = whereClause ?? string.Empty;
			orderBy = orderBy ?? string.Empty;
			
			WsProxy.AdventureWorksServices proxy = new WsProxy.AdventureWorksServices();
			proxy.Url = Url;
			
			WsProxy.ErrorLog[] items = proxy.ErrorLogProvider_GetPaged(whereClause, orderBy, start, pageLength, out count);
			
			// Create a collection and fill it with the dataset
			return Convert(items); 
			}
			catch(SoapException soex)
			{
				System.Diagnostics.Debug.WriteLine(soex);
				throw soex;
			}
			catch(Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex);
				throw ex;
			}
		}
开发者ID:netTiers,项目名称:netTiers,代码行数:37,代码来源:WsErrorLogProviderBase.generated.cs


示例3: BulkInsert

		/// <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.ErrorLog 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<ErrorLog> entityList)
		{
			WsProxy.AdventureWorksServices proxy = new WsProxy.AdventureWorksServices();
			proxy.Url = Url;
			try
			{
				proxy.ErrorLogProvider_BulkInsert(Convert(entityList));
			}
			catch(SoapException soex)
			{
				System.Diagnostics.Debug.WriteLine(soex);
				throw soex;
			}
			catch (Exception ex)
			{	
				System.Diagnostics.Debug.WriteLine(ex);
				throw ex;
			}
		}
开发者ID:netTiers,项目名称:netTiers,代码行数:28,代码来源:WsErrorLogProviderBase.generated.cs


示例4: GetByProductIdReviewerName

		/// <summary>
		/// 	Gets rows from the datasource based on the IX_ProductReview_ProductID_Name index.
		/// </summary>
		/// <param name="start">Row number at which to start reading.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="_productId">Product identification number. Foreign key to Product.ProductID.</param>
		/// <param name="_reviewerName">Name of the reviewer.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="count">out parameter to get total records for query</param>	
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="Nettiers.AdventureWorks.Entities.TList&lt;ProductReview&gt;"/> class.</returns>
		public override Nettiers.AdventureWorks.Entities.TList<ProductReview> GetByProductIdReviewerName(TransactionManager transactionManager, System.Int32 _productId, System.String _reviewerName, int start, int pageLength, out int count)
		{
			try
			{
			WsProxy.AdventureWorksServices proxy = new WsProxy.AdventureWorksServices();
			proxy.Url = Url;
			WsProxy.ProductReview[] items = proxy.ProductReviewProvider_GetByProductIdReviewerName(_productId, _reviewerName, start, pageLength, out count);
			
			return Convert(items); 
			}
			catch(SoapException soex)
			{
				System.Diagnostics.Debug.WriteLine(soex);
				throw soex;
			}
			catch(Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex);
				throw ex;
			}
		}
开发者ID:netTiers,项目名称:netTiers,代码行数:32,代码来源:WsProductReviewProviderBase.generated.cs


示例5: Delete

			/// <summary>
			/// 	Deletes a row from the DataSource.
			/// </summary>
			/// <param name="_errorLogId">Primary key for ErrorLog records.. Primary Key.</param>	
            
			/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
			/// <remarks>Deletes based on primary key(s).</remarks>
			/// <returns>Returns true if operation suceeded.</returns>
			public override bool Delete(TransactionManager transactionManager, System.Int32 _errorLogId)
			{
				try
				{
				// call the proxy
				WsProxy.AdventureWorksServices proxy = new WsProxy.AdventureWorksServices();
				proxy.Url = Url;
				
				bool result = proxy.ErrorLogProvider_Delete(_errorLogId);				
				return result;
				}
				catch(SoapException soex)
				{
					System.Diagnostics.Debug.WriteLine(soex);
					throw soex;
				}
				catch(Exception ex)
				{
					System.Diagnostics.Debug.WriteLine(ex);
					throw ex;
				}
			}
开发者ID:netTiers,项目名称:netTiers,代码行数:30,代码来源:WsErrorLogProviderBase.generated.cs


示例6: GetBySpecialOfferIdProductId

		/// <summary>
		/// 	Gets rows from the datasource based on the FK_SalesOrderDetail_SpecialOfferProduct_SpecialOfferIDProductID key.
		///		FK_SalesOrderDetail_SpecialOfferProduct_SpecialOfferIDProductID Description: Foreign key constraint referencing SpecialOfferProduct.SpecialOfferIDProductID.
		/// </summary>
		/// <param name="start">Row number at which to start reading.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_specialOfferId">Promotional code. Foreign key to SpecialOffer.SpecialOfferID.</param>
		/// <param name="_productId">Product sold to customer. Foreign key to Product.ProductID.</param>
		/// <param name="count">out parameter to get total records for query</param>	
		/// <remarks></remarks>		
		/// <returns>Returns a typed collection of Nettiers.AdventureWorks.Entities.SalesOrderDetail objects.</returns>
		public override Nettiers.AdventureWorks.Entities.TList<SalesOrderDetail> GetBySpecialOfferIdProductId(TransactionManager transactionManager, System.Int32 _specialOfferId, System.Int32 _productId, int start, int pageLength, out int count)
		{
			try
			{
			WsProxy.AdventureWorksServices proxy = new WsProxy.AdventureWorksServices();
			proxy.Url = Url;
			WsProxy.SalesOrderDetail[] items = proxy.SalesOrderDetailProvider_GetBySpecialOfferIdProductId(_specialOfferId, _productId, start, pageLength, out count);
			
			return Convert(items); 
			}
			catch(SoapException soex)
			{
				System.Diagnostics.Debug.WriteLine(soex);
				throw soex;
			}
			catch(Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex);
				throw ex;
			}
		}
开发者ID:WildGenie,项目名称:NetTiers,代码行数:33,代码来源:WsSalesOrderDetailProviderBase.generated.cs


示例7: GetAll

		/// <summary>
		/// 	Gets All rows from the DataSource.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="start">Row number at which to start reading.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>			
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of Nettiers.AdventureWorks.Entities.StateProvince objects.</returns>
		public override Nettiers.AdventureWorks.Entities.TList<StateProvince> GetAll(TransactionManager transactionManager, int start, int pageLength, out int count)
		{
			try
			{
			WsProxy.AdventureWorksServices proxy = new WsProxy.AdventureWorksServices();
			proxy.Url = Url;
				
			WsProxy.StateProvince[] items = proxy.StateProvinceProvider_GetAll(start, pageLength, out count);
			
			return Convert(items); 
			}
			catch(SoapException soex)
			{
				System.Diagnostics.Debug.WriteLine(soex);
				throw soex;
			}
			catch(Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex);
				throw ex;
			}
		}
开发者ID:netTiers,项目名称:netTiers,代码行数:31,代码来源:WsStateProvinceProviderBase.generated.cs


示例8: Delete

			/// <summary>
			/// 	Deletes a row from the DataSource.
			/// </summary>
			/// <param name="_salesPersonId">Primary key for SalesTerritoryHistory records.. Primary Key.</param>	
			/// <param name="_startDate">Date the sales representive started work in the territory.. Primary Key.</param>	
			/// <param name="_territoryId">Territory identification number. Foreign key to SalesTerritory.SalesTerritoryID.. Primary Key.</param>	
            
			/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
			/// <remarks>Deletes based on primary key(s).</remarks>
			/// <returns>Returns true if operation suceeded.</returns>
			public override bool Delete(TransactionManager transactionManager, System.Int32 _salesPersonId, System.DateTime _startDate, System.Int32 _territoryId)
			{
				try
				{
				// call the proxy
				WsProxy.AdventureWorksServices proxy = new WsProxy.AdventureWorksServices();
				proxy.Url = Url;
				
				bool result = proxy.SalesTerritoryHistoryProvider_Delete(_salesPersonId, _startDate, _territoryId);				
				return result;
				}
				catch(SoapException soex)
				{
					System.Diagnostics.Debug.WriteLine(soex);
					throw soex;
				}
				catch(Exception ex)
				{
					System.Diagnostics.Debug.WriteLine(ex);
					throw ex;
				}
			}
开发者ID:netTiers,项目名称:netTiers,代码行数:32,代码来源:WsSalesTerritoryHistoryProviderBase.generated.cs


示例9: GetBySalesPersonIdStartDateTerritoryId

		/// <summary>
		/// 	Gets rows from the datasource based on the PK_SalesTerritoryHistory_SalesPersonID_StartDate_TerritoryID index.
		/// </summary>
		/// <param name="start">Row number at which to start reading.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="_salesPersonId">Primary key for SalesTerritoryHistory records.</param>
		/// <param name="_startDate">Date the sales representive started work in the territory.</param>
		/// <param name="_territoryId">Territory identification number. Foreign key to SalesTerritory.SalesTerritoryID.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="count">out parameter to get total records for query</param>	
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="Nettiers.AdventureWorks.Entities.SalesTerritoryHistory"/> class.</returns>
		public override Nettiers.AdventureWorks.Entities.SalesTerritoryHistory GetBySalesPersonIdStartDateTerritoryId(TransactionManager transactionManager, System.Int32 _salesPersonId, System.DateTime _startDate, System.Int32 _territoryId, int start, int pageLength, out int count)
		{
			try
			{
			WsProxy.AdventureWorksServices proxy = new WsProxy.AdventureWorksServices();
			proxy.Url = Url;
			WsProxy.SalesTerritoryHistory items = proxy.SalesTerritoryHistoryProvider_GetBySalesPersonIdStartDateTerritoryId(_salesPersonId, _startDate, _territoryId, start, pageLength, out count);
			
			return Convert(items); 
			}
			catch(SoapException soex)
			{
				System.Diagnostics.Debug.WriteLine(soex);
				throw soex;
			}
			catch(Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex);
				throw ex;
			}
		}
开发者ID:netTiers,项目名称:netTiers,代码行数:33,代码来源:WsSalesTerritoryHistoryProviderBase.generated.cs


示例10: GetByContactIdFromStoreContact

		/// <summary>
		///		Gets Store objects from the datasource by ContactID in the
		///		StoreContact table. Table Store is related to table Contact
		///		through the (M:N) relationship defined in the StoreContact table.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="start">Row number at which to start reading.</param>
		/// <param name="pagelen">Number of rows to return.</param>
		/// <param name="_contactId">Contact (store employee) identification number. Foreign key to Contact.ContactID.</param>
		/// <param name="count">Number of rows in the DataSource.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of Store objects.</returns>
		public override TList<Store> GetByContactIdFromStoreContact(TransactionManager transactionManager, System.Int32 _contactId, int start, int pagelen, out int count)
		{
			try
			{
			WsProxy.AdventureWorksServices proxy = new WsProxy.AdventureWorksServices();
			proxy.Url = Url;
				
			WsProxy.Store[] items = proxy.StoreProvider_GetByContactIdFromStoreContact(_contactId, start, pagelen, out count);
	
			return Convert(items); 
			}
			catch(SoapException soex)
			{
				System.Diagnostics.Debug.WriteLine(soex);
				throw soex;
			}
			catch(Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex);
				throw ex;
			}
		}
开发者ID:netTiers,项目名称:netTiers,代码行数:34,代码来源:WsStoreProviderBase.generated.cs


示例11: GetByTestIssue117TableAidTestIssue117TableBid

		/// <summary>
		/// 	Gets rows from the datasource based on the PK_TestIssue117TableC index.
		/// </summary>
		/// <param name="start">Row number at which to start reading.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="_testIssue117TableAid"></param>
		/// <param name="_testIssue117TableBid"></param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="count">out parameter to get total records for query</param>	
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="Nettiers.AdventureWorks.Entities.TestIssue117Tablec"/> class.</returns>
		public override Nettiers.AdventureWorks.Entities.TestIssue117Tablec GetByTestIssue117TableAidTestIssue117TableBid(TransactionManager transactionManager, System.Int32 _testIssue117TableAid, System.Int32 _testIssue117TableBid, int start, int pageLength, out int count)
		{
			try
			{
			WsProxy.AdventureWorksServices proxy = new WsProxy.AdventureWorksServices();
			proxy.Url = Url;
			WsProxy.TestIssue117Tablec items = proxy.TestIssue117TablecProvider_GetByTestIssue117TableAidTestIssue117TableBid(_testIssue117TableAid, _testIssue117TableBid, start, pageLength, out count);
			
			return Convert(items); 
			}
			catch(SoapException soex)
			{
				System.Diagnostics.Debug.WriteLine(soex);
				throw soex;
			}
			catch(Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex);
				throw ex;
			}
		}
开发者ID:netTiers,项目名称:netTiers,代码行数:32,代码来源:WsTestIssue117TablecProviderBase.generated.cs


示例12: GetByTestIssue117TableBidFromTestIssue117Tablec

		/// <summary>
		///		Gets TestIssue117TableA objects from the datasource by TestIssue117TableBId in the
		///		TestIssue117TableC table. Table TestIssue117TableA is related to table TestIssue117TableB
		///		through the (M:N) relationship defined in the TestIssue117TableC table.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="start">Row number at which to start reading.</param>
		/// <param name="pagelen">Number of rows to return.</param>
		/// <param name="_testIssue117TableBid"></param>
		/// <param name="count">Number of rows in the DataSource.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of TestIssue117TableA objects.</returns>
		public override TList<TestIssue117Tablea> GetByTestIssue117TableBidFromTestIssue117Tablec(TransactionManager transactionManager, System.Int32 _testIssue117TableBid, int start, int pagelen, out int count)
		{
			try
			{
			WsProxy.AdventureWorksServices proxy = new WsProxy.AdventureWorksServices();
			proxy.Url = Url;
				
			WsProxy.TestIssue117Tablea[] items = proxy.TestIssue117TableaProvider_GetByTestIssue117TableBidFromTestIssue117Tablec(_testIssue117TableBid, start, pagelen, out count);
	
			return Convert(items); 
			}
			catch(SoapException soex)
			{
				System.Diagnostics.Debug.WriteLine(soex);
				throw soex;
			}
			catch(Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex);
				throw ex;
			}
		}
开发者ID:netTiers,项目名称:netTiers,代码行数:34,代码来源:WsTestIssue117TableaProviderBase.generated.cs


示例13: GetByCurrencyCodeFromCountryRegionCurrency

		/// <summary>
		///		Gets CountryRegion objects from the datasource by CurrencyCode in the
		///		CountryRegionCurrency table. Table CountryRegion is related to table Currency
		///		through the (M:N) relationship defined in the CountryRegionCurrency table.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="start">Row number at which to start reading.</param>
		/// <param name="pagelen">Number of rows to return.</param>
		/// <param name="_currencyCode">ISO standard currency code. Foreign key to Currency.CurrencyCode.</param>
		/// <param name="count">Number of rows in the DataSource.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of CountryRegion objects.</returns>
		public override TList<CountryRegion> GetByCurrencyCodeFromCountryRegionCurrency(TransactionManager transactionManager, System.String _currencyCode, int start, int pagelen, out int count)
		{
			try
			{
			WsProxy.AdventureWorksServices proxy = new WsProxy.AdventureWorksServices();
			proxy.Url = Url;
				
			WsProxy.CountryRegion[] items = proxy.CountryRegionProvider_GetByCurrencyCodeFromCountryRegionCurrency(_currencyCode, start, pagelen, out count);
	
			return Convert(items); 
			}
			catch(SoapException soex)
			{
				System.Diagnostics.Debug.WriteLine(soex);
				throw soex;
			}
			catch(Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex);
				throw ex;
			}
		}
开发者ID:WildGenie,项目名称:NetTiers,代码行数:34,代码来源:WsCountryRegionProviderBase.generated.cs


示例14: GetByNullFkeyParentId

		/// <summary>
		/// 	Gets rows from the datasource based on the FK_NullFKeyChild_NullFKeyParent key.
		///		FK_NullFKeyChild_NullFKeyParent Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_nullFkeyParentId"></param>
		/// <param name="count">out parameter to get total records for query</param>	
		/// <remarks></remarks>		
		/// <returns>Returns a typed collection of Nettiers.AdventureWorks.Entities.NullFkeyChild objects.</returns>
		public override Nettiers.AdventureWorks.Entities.TList<NullFkeyChild> GetByNullFkeyParentId(TransactionManager transactionManager, System.Int32? _nullFkeyParentId, int start, int pageLength, out int count)
		{
			try
			{
			WsProxy.AdventureWorksServices proxy = new WsProxy.AdventureWorksServices();
			proxy.Url = Url;
			WsProxy.NullFkeyChild[] items = proxy.NullFkeyChildProvider_GetByNullFkeyParentId(_nullFkeyParentId, start, pageLength, out count);
			
			return Convert(items); 
			}
			catch(SoapException soex)
			{
				System.Diagnostics.Debug.WriteLine(soex);
				throw soex;
			}
			catch(Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex);
				throw ex;
			}
		}
开发者ID:WildGenie,项目名称:NetTiers,代码行数:32,代码来源:WsNullFkeyChildProviderBase.generated.cs


示例15: GetByProductDescriptionIdFromProductModelProductDescriptionCulture

		/// <summary>
		///		Gets ProductModel objects from the datasource by ProductDescriptionID in the
		///		ProductModelProductDescriptionCulture table. Table ProductModel is related to table ProductDescription
		///		through the (M:N) relationship defined in the ProductModelProductDescriptionCulture table.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="start">Row number at which to start reading.</param>
		/// <param name="pagelen">Number of rows to return.</param>
		/// <param name="_productDescriptionId">Primary key. Foreign key to ProductDescription.ProductDescriptionID.</param>
		/// <param name="count">Number of rows in the DataSource.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of ProductModel objects.</returns>
		public override TList<ProductModel> GetByProductDescriptionIdFromProductModelProductDescriptionCulture(TransactionManager transactionManager, System.Int32 _productDescriptionId, int start, int pagelen, out int count)
		{
			try
			{
			WsProxy.AdventureWorksServices proxy = new WsProxy.AdventureWorksServices();
			proxy.Url = Url;
				
			WsProxy.ProductModel[] items = proxy.ProductModelProvider_GetByProductDescriptionIdFromProductModelProductDescriptionCulture(_productDescriptionId, start, pagelen, out count);
	
			return Convert(items); 
			}
			catch(SoapException soex)
			{
				System.Diagnostics.Debug.WriteLine(soex);
				throw soex;
			}
			catch(Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex);
				throw ex;
			}
		}
开发者ID:WildGenie,项目名称:NetTiers,代码行数:34,代码来源:WsProductModelProviderBase.generated.cs


示例16: GetAll

		/// <summary>
		/// 	Gets All rows from the DataSource.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="start">Row number at which to start reading.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">count of records returned</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of VJobCandidateEducation objects.</returns>
		public override VList<VJobCandidateEducation> GetAll(TransactionManager transactionManager, int start, int pageLength, out int count)
		{
			try
			{
			WsProxy.AdventureWorksServices proxy = new WsProxy.AdventureWorksServices();
			proxy.Url = this.url;
				
			WsProxy.VJobCandidateEducation[] items = proxy.VJobCandidateEducationProvider_GetAll(start, pageLength);   
			
			count = items.Length;
			return Convert(items);
			}
			catch(SoapException soex)
			{
				System.Diagnostics.Debug.WriteLine(soex);
				throw soex;
			}
			catch(Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex);
				throw ex;
			}
		}
开发者ID:netTiers,项目名称:netTiers,代码行数:32,代码来源:WsVJobCandidateEducationProviderBase.generated.cs


示例17: GetByInstructions

		/// <summary>
		/// 	Gets rows from the datasource based on the PXML_ProductModel_Instructions index.
		/// </summary>
		/// <param name="start">Row number at which to start reading.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="_instructions">Manufacturing instructions in xml format.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="count">out parameter to get total records for query</param>	
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="Nettiers.AdventureWorks.Entities.TList&lt;ProductModel&gt;"/> class.</returns>
		public override Nettiers.AdventureWorks.Entities.TList<ProductModel> GetByInstructions(TransactionManager transactionManager, string _instructions, int start, int pageLength, out int count)
		{
			try
			{
			WsProxy.AdventureWorksServices proxy = new WsProxy.AdventureWorksServices();
			proxy.Url = Url;
			WsProxy.ProductModel[] items = proxy.ProductModelProvider_GetByInstructions(_instructions, start, pageLength, out count);
			
			return Convert(items); 
			}
			catch(SoapException soex)
			{
				System.Diagnostics.Debug.WriteLine(soex);
				throw soex;
			}
			catch(Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex);
				throw ex;
			}
		}
开发者ID:WildGenie,项目名称:NetTiers,代码行数:31,代码来源:WsProductModelProviderBase.generated.cs


示例18: GetByShipMethodId

		/// <summary>
		/// 	Gets rows from the datasource based on the FK_PurchaseOrderHeader_ShipMethod_ShipMethodID key.
		///		FK_PurchaseOrderHeader_ShipMethod_ShipMethodID Description: Foreign key constraint referencing ShipMethod.ShipMethodID.
		/// </summary>
		/// <param name="start">Row number at which to start reading.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="_shipMethodId">Shipping method. Foreign key to ShipMethod.ShipMethodID.</param>
		/// <param name="count">out parameter to get total records for query</param>	
		/// <remarks></remarks>		
		/// <returns>Returns a typed collection of Nettiers.AdventureWorks.Entities.PurchaseOrderHeader objects.</returns>
		public override Nettiers.AdventureWorks.Entities.TList<PurchaseOrderHeader> GetByShipMethodId(TransactionManager transactionManager, System.Int32 _shipMethodId, int start, int pageLength, out int count)
		{
			try
			{
			WsProxy.AdventureWorksServices proxy = new WsProxy.AdventureWorksServices();
			proxy.Url = Url;
			WsProxy.PurchaseOrderHeader[] items = proxy.PurchaseOrderHeaderProvider_GetByShipMethodId(_shipMethodId, start, pageLength, out count);
			
			return Convert(items); 
			}
			catch(SoapException soex)
			{
				System.Diagnostics.Debug.WriteLine(soex);
				throw soex;
			}
			catch(Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex);
				throw ex;
			}
		}
开发者ID:WildGenie,项目名称:NetTiers,代码行数:32,代码来源:WsPurchaseOrderHeaderProviderBase.generated.cs


示例19: GetByRowguid

		/// <summary>
		/// 	Gets rows from the datasource based on the AK_SalesOrderDetail_rowguid index.
		/// </summary>
		/// <param name="start">Row number at which to start reading.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="_rowguid">ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="count">out parameter to get total records for query</param>	
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="Nettiers.AdventureWorks.Entities.SalesOrderDetail"/> class.</returns>
		public override Nettiers.AdventureWorks.Entities.SalesOrderDetail GetByRowguid(TransactionManager transactionManager, System.Guid _rowguid, int start, int pageLength, out int count)
		{
			try
			{
			WsProxy.AdventureWorksServices proxy = new WsProxy.AdventureWorksServices();
			proxy.Url = Url;
			WsProxy.SalesOrderDetail items = proxy.SalesOrderDetailProvider_GetByRowguid(_rowguid, start, pageLength, out count);
			
			return Convert(items); 
			}
			catch(SoapException soex)
			{
				System.Diagnostics.Debug.WriteLine(soex);
				throw soex;
			}
			catch(Exception ex)
			{
				System.Diagnostics.Debug.WriteLine(ex);
				throw ex;
			}
		}
开发者ID:WildGenie,项目名称:NetTiers,代码行数:31,代码来源:WsSalesOrderDetailProviderBase.generated.cs


示例20: Delete

			/// <summary>
			/// 	Deletes a row from the DataSource.
			/// </summary>
			/// <param name="_employeeId">Employee identification number. Foreign key to Employee.EmployeeID.. Primary Key.</param>	
			/// <param name="_startDate">Date the employee started work in the department.. Primary Key.</param>	
			/// <param name="_departmentId">Department in which the employee worked including currently. Foreign key to Department.DepartmentID.. Primary Key.</param>	
			/// <param name="_shiftId">Identifies which 8-hour shift the employee works. Foreign key to Shift.Shift.ID.. Primary Key.</param>	
            
			/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
			/// <remarks>Deletes based on primary key(s).</remarks>
			/// <returns>Returns true if operation suceeded.</returns>
			public override bool Delete(TransactionManager transactionManager, System.Int32 _employeeId, System.DateTime _startDate, System.Int16 _departmentId, System.Byte _shiftId)
			{
				try
				{
				// call the proxy
				WsProxy.AdventureWorksServices proxy = new WsProxy.AdventureWorksServices();
				proxy.Url = Url;
				
				bool result = proxy.EmployeeDepartmentHistoryProvider_Delete(_employeeId, _startDate, _departmentId, _shiftId);				
				return result;
				}
				catch(SoapException soex)
				{
					System.Diagnostics.Debug.WriteLine(soex);
					throw soex;
				}
				catch(Exception ex)
				{
					System.Diagnostics.Debug.WriteLine(ex);
					throw ex;
				}
			}
开发者ID:WildGenie,项目名称:NetTiers,代码行数:33,代码来源:WsEmployeeDepartmentHistoryProviderBase.generated.cs



注:本文中的WsProxy.AdventureWorksServices类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Wuqi类代码示例发布时间:2022-05-24
下一篇:
C# WsProxy类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap