domain.cs
来自「NHibernate NET开发者所需的」· CS 代码 · 共 85 行
CS
85 行
using System;
using System.Collections.Generic;
namespace NHibernate.Test.NHSpecificTest.NH687
{
public class Foo
{
private int id;
private FooBar fooBar;
private IList<Foo> children = new List<Foo>();
public int Id
{
get { return id; }
set { id = value; }
}
public IList<Foo> Children
{
get { return children; }
}
public FooBar FooBar
{
get { return fooBar; }
set { fooBar = value; }
}
}
public class Bar
{
private IList<Bar> children = new List<Bar>();
private IList<FooBar> fooBars = new List<FooBar>();
private int id;
public int Id
{
get { return id; }
set { id = value; }
}
public ICollection<FooBar> FooBars
{
get { return fooBars; }
}
public ICollection<Bar> Children
{
get { return children; }
}
}
public class FooBar
{
private IList<FooBar> children = new List<FooBar>();
private Bar bar;
private int id;
public int Id
{
get { return id; }
set { id = value; }
}
public IList<FooBar> Children
{
get { return children; }
}
public Bar Bar
{
get { return bar; }
set { bar = value; }
}
private Foo foo;
public Foo Foo
{
get { return foo; }
private set { foo = value; }
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?