⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 reference.cs

📁 该项目中对 SQLHelper 类进行了简单封装
💻 CS
字号:
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:2.0.50727.1433
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace NET.AfritXia.MyHome.HomeManagement.HomeAppServer.ArticleServiceRef
{
	using System;
	using System.CodeDom.Compiler;
	using System.Collections.Generic;
	using System.Diagnostics;
	using System.ServiceModel;
	using System.ServiceModel.Channels;

	using NET.AfritXia.MyHome.Model.Message;
	using NET.AfritXia.MyHome.ServiceInterface;

	[DebuggerStepThroughAttribute()]
	[GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
	public partial class ArticleServiceClient : ClientBase<IArticleService>, IArticleService
	{
		// 活动用户名称
		private string m_actor = null;

		#region 类构造器
		public ArticleServiceClient()
		{
		}

		public ArticleServiceClient(string endpointConfigurationName) :
			base(endpointConfigurationName)
		{
		}

		public ArticleServiceClient(string endpointConfigurationName, string remoteAddress) :
			base(endpointConfigurationName, remoteAddress)
		{
		}

		public ArticleServiceClient(string endpointConfigurationName, EndpointAddress remoteAddress) :
			base(endpointConfigurationName, remoteAddress)
		{
		}

		public ArticleServiceClient(Binding binding, EndpointAddress remoteAddress) :
			base(binding, remoteAddress)
		{
		}
		#endregion

		public void Append(Article newArticle)
		{
			using (OperationContextScope scope = new OperationContextScope(base.InnerChannel))
			{
				OperationContext.Current.OutgoingMessageHeaders.Add(
					MessageHeader.CreateHeader("Actor", "NET.AfritXia", this.Actor));

				base.Channel.Append(newArticle);
			}
		}

		public void Delete(int articleUID)
		{
			using (OperationContextScope scope = new OperationContextScope(base.InnerChannel))
			{
				OperationContext.Current.OutgoingMessageHeaders.Add(
					MessageHeader.CreateHeader("Actor", "NET.AfritXia", this.Actor));

				base.Channel.Delete(articleUID);
			}
		}

		public void Update(Article newArticle)
		{
			using (OperationContextScope scope = new OperationContextScope(base.InnerChannel))
			{
				OperationContext.Current.OutgoingMessageHeaders.Add(
					MessageHeader.CreateHeader("Actor", "NET.AfritXia", this.Actor));

				base.Channel.Update(newArticle);
			}
		}

		public IList<Article> GetArticleList(int orderGist, int startRecord, int maxRecords, out int allRecordCount)
		{
			using (OperationContextScope scope = new OperationContextScope(base.InnerChannel))
			{
				OperationContext.Current.OutgoingMessageHeaders.Add(
					MessageHeader.CreateHeader("Actor", "NET.AfritXia", this.Actor));

				return base.Channel.GetArticleList(orderGist, startRecord, maxRecords, out allRecordCount);
			}
		}

		public Article ViewArticle(int articleID)
		{
			using (OperationContextScope scope = new OperationContextScope(base.InnerChannel))
			{
				OperationContext.Current.OutgoingMessageHeaders.Add(
					MessageHeader.CreateHeader("Actor", "NET.AfritXia", this.Actor));

				return base.Channel.ViewArticle(articleID);
			}
		}

		public string Actor
		{
			set
			{
				this.m_actor = value;
			}

			get
			{
				return this.m_actor;
			}
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -