model.cs
来自「NHibernate NET开发者所需的」· CS 代码 · 共 100 行
CS
100 行
using System;
namespace NHibernate.Test.NHSpecificTest.NH372
{
public class BaseParent
{
private int _Id;
public virtual int Id
{
get { return _Id; }
}
private string _Name;
public virtual string Name
{
get { return _Name; }
set { _Name = value; }
}
private Component _Component = new Component();
public virtual Component Component
{
get { return _Component; }
set { _Component = value; }
}
}
public class Parent : BaseParent
{
}
public class DynamicParent : BaseParent
{
}
public class Component
{
private int _NormalField;
public virtual int NormalField
{
get { return _NormalField; }
set { _NormalField = value; }
}
private int _FieldNotInserted;
public virtual int FieldNotInserted
{
get { return _FieldNotInserted; }
set { _FieldNotInserted = value; }
}
private int _FieldNotUpdated;
public virtual int FieldNotUpdated
{
get { return _FieldNotUpdated; }
set { _FieldNotUpdated = value; }
}
private SubComponent _SubComponent = new SubComponent();
public virtual SubComponent SubComponent
{
get { return _SubComponent; }
set { _SubComponent = value; }
}
}
public class SubComponent
{
private int _NormalField;
public virtual int NormalField
{
get { return _NormalField; }
set { _NormalField = value; }
}
private int _FieldNotInserted;
public virtual int FieldNotInserted
{
get { return _FieldNotInserted; }
set { _FieldNotInserted = value; }
}
private int _FieldNotUpdated;
public virtual int FieldNotUpdated
{
get { return _FieldNotUpdated; }
set { _FieldNotUpdated = value; }
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?