fieldattribute.cs

来自「.net的数据持久层」· CS 代码 · 共 38 行

CS
38
字号
using System;

namespace Platform.Data
{
	/// <summary>
	/// FieldAttribute 的摘要说明。
	/// </summary>
	public class FieldAttribute : Attribute 
	{
		public string _FieldName;
		public int _Size;
		public bool _IsKeyField;

		public FieldAttribute(string fn) 
		{
			this.FieldName = fn;
		}

		public string FieldName
		{
			get { return _FieldName; }
			set { _FieldName = value; }
		}

		public bool IsKeyField 
		{
			get { return _IsKeyField; }
			set { _IsKeyField = value; }
		}

		public int Size
		{
			get { return _Size; }
			set { _Size = value; }
		}
	}
}

⌨️ 快捷键说明

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