namespace Model { [ObjectEvent] public class GamerEvent : ObjectEvent, IAwake { public void Awake(string account) { this.Get().Awake(account); } } public sealed class Player : Entity { public string Account { get; private set; } public long UnitId { get; set; } public void Awake(string account) { this.Account = account; } public override void Dispose() { if (this.Id == 0) { return; } base.Dispose(); } } }