public AddPointRecordEvent(int point, PointType pointType, PointOperationType operationType, string notes, string createBy) { Point = point; PointType = pointType; OperationType = operationType; Notes = notes; CreateBy = createBy; }
public AddPointRecordCommand(string id, int point, PointType pointType, PointOperationType operationType, string notes, string createBy) : base(id) { Point = point; PointType = pointType; OperationType = operationType; Notes = notes; CreateBy = createBy; }
public PointRecord(string id, int point, PointType pointType, PointOperationType operationType, string notes, string createBy) : base(id) { Point = point; PointType = pointType; OperationType = operationType; Notes = notes; CreateBy = createBy; CreateTime = DateTime.Now; ApplyEvent(new AddPointRecordEvent(Point, PointType, OperationType, Notes, CreateBy)); }