?? 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;
}
}
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 + -