domain.cs
来自「NHibernate NET开发者所需的」· CS 代码 · 共 49 行
CS
49 行
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 + =
减小字号Ctrl + -
显示快捷键?