unsavedvalueminusone.cs

来自「NHibernate NET开发者所需的」· CS 代码 · 共 37 行

CS
37
字号
using System;

namespace NHibernate.Test.NHSpecificTest.NH392
{
	/// <summary>
	/// This class initializes the unsaved value to -1.
	/// </summary>
	public class UnsavedValueMinusOne
	{
		private int _id;
		private string _name;
		private DateTime _updateTimestamp;

		public int Id
		{
			get { return this._id; }
			set { this._id = value; }
		}

		public string Name
		{
			get { return this._name; }
			set { this._name = value; }
		}

		public DateTime UpdateTimestamp
		{
			get { return this._updateTimestamp; }
			set { this._updateTimestamp = value; }
		}

		public UnsavedValueMinusOne()
		{
			this._id = -1;
		}
	}
}

⌨️ 快捷键说明

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