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

📄 domain.cs

📁 NHibernate NET开发者所需的
💻 CS
字号:
using System;
using System.Collections;

namespace NHibernate.Test.NHSpecificTest.NH643
{
	[Serializable]
	public class Parent
	{
		private int _id;
		private IList _children = new ArrayList();

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

		public virtual IList Children
		{
			get { return this._children; }
			set { this._children = value; }
		}

		public virtual void AddChild(Child child)
		{
			child.Parent = this;
			this.Children.Add(child);
		}
	}

	[Serializable]
	public class Child
	{
		private int _id;
		private Parent _parent;

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

		public virtual Parent Parent
		{
			get { return this._parent; }
			set { this._parent = value; }
		}
	}
}

⌨️ 快捷键说明

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