aritcleentity.cs

来自「该项目中对 SQLHelper 类进行了简单封装」· CS 代码 · 共 88 行

CS
88
字号
/* 
 * AritcleEntity.cs @Microsoft Visual Studio 2008 <.NET Framework 3.5>
 * AfritXia
 * 2008-01-20
 * 
 * Copyright(c) AfritXia.NET
 * 
 */

using System;
using System.Data.Linq.Mapping;

namespace NET.AfritXia.MyHome.DBTaskImpl.Entity
{
	[Table(Name = "Article")]
	internal class AritcleEntity
	{
		[Column(Name = "ArticleUID", IsPrimaryKey = true, IsDbGenerated = true)]
		public int ArticleUID
		{
			set;
			get;
		}

		[Column(Name = "Title", CanBeNull = false)]
		public string Title
		{
			set;
			get;
		}

		[Column(Name = "PostUser", CanBeNull = false)]
		public string PostUser
		{
			set;
			get;
		}

		[Column(Name = "Summary")]
		public string Summary
		{
			set;
			get;
		}

		[Column(Name = "TextContent", CanBeNull = false)]
		public string TextContent
		{
			set;
			get;
		}

		[Column(Name = "PostTime", CanBeNull = false)]
		public DateTime PostTime
		{
			set;
			get;
		}

		[Column(Name = "UpdateTime")]
		public DateTime UpdateTime
		{
			set;
			get;
		}

		[Column(Name = "ClientIP", CanBeNull = false)]
		public string ClientIP
		{
			set;
			get;
		}

		[Column(Name = "Clicked")]
		public int Clicked
		{
			set;
			get;
		}

		[Column(Name = "__CommentCount")]
		public int CommentCount
		{
			set;
			get;
		}
	}
}

⌨️ 快捷键说明

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