📄 propertyclasses.cs
字号:
using Lephone.Data.Definition;
namespace Lephone.UnitTest.Data.Objects
{
[DbTable("People")]
public abstract class PropertyClassBase : DbObject
{
public abstract string Name { get; set; }
public PropertyClassBase() {}
public PropertyClassBase(string Name)
{
this.Name = Name;
}
}
[DbTable("People")]
public class PropertyClassImpl : PropertyClassBase
{
private string _Name;
public override string Name
{
get { return _Name; }
set { _Name = value; }
}
public PropertyClassImpl() {}
public PropertyClassImpl(string Name)
: base(Name)
{
}
}
[DbTable("People")]
public abstract class PropertyClassWithDbColumn : DbObject
{
[DbColumn("Name")]
public abstract string TheName { get; set; }
public PropertyClassWithDbColumn() { }
public PropertyClassWithDbColumn(string Name)
{
this.TheName = Name;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -