초기커밋
This commit is contained in:
53
BrokerApiTest/DocQuery/UserTestEntity.cs
Normal file
53
BrokerApiTest/DocQuery/UserTestEntity.cs
Normal file
@@ -0,0 +1,53 @@
|
||||
using PlatformTest.DbQuery;
|
||||
|
||||
using ServerCommon;
|
||||
|
||||
using ServerCore; using ServerBase;
|
||||
|
||||
// EntityBase: EntityAttribute와 EntityAction을 관리하는 컨테이너
|
||||
public class UserTestEntity : EntityBase, IWithLogActor
|
||||
{
|
||||
// EntityType은 어디에 쓰는 걸까? 아마도 로그?
|
||||
|
||||
public UserTestEntity() : base(EntityType.Golbal)
|
||||
{
|
||||
}
|
||||
|
||||
public override async Task<Result> onInit()
|
||||
{
|
||||
base.onCearAll();
|
||||
// EntityAttribute, EntityAction 생성
|
||||
addEntityAttribute(new UserTestEntityAttribute(this));
|
||||
addEntityAction(new UserTestInsertAction(this));
|
||||
addEntityAction(new UserTestFindOneAction(this));
|
||||
addEntityAction(new UserTestUpdateOneAction(this));
|
||||
addEntityAction(new UserTestDeleteOneAction(this));
|
||||
var result = await base.onInit();
|
||||
if (result.isFail())
|
||||
{
|
||||
return result;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public override void onCearAll()
|
||||
{
|
||||
base.onCearAll();
|
||||
}
|
||||
|
||||
public override string toBasicString()
|
||||
{
|
||||
return $"{this.getTypeName()}";
|
||||
}
|
||||
|
||||
public override string toSummaryString()
|
||||
{
|
||||
return $"{this.getTypeName()}";
|
||||
}
|
||||
|
||||
public ILogActor toLogActor()
|
||||
{
|
||||
// 그냥 나중에 로거를 꺼내서 처리하는 듯 하다.
|
||||
return new UserTestActorLog();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user