コード例 #1
0
        private bool AddCost(Func <ICostV5, Cost> createCost, IEntity entity, ICostV5 entityCost)
        {
            if (entityCost == null)
            {
                return(false);
            }

            var cost = createCost(entityCost);

            cost.CostId  = chunkData.KeyMasterOffset.VisitCostId;
            cost.EventId = entity.Id;

            return(chunkData.AddCostData(cost));
        }
コード例 #2
0
        private bool AddCost(long eventId, Func <ICostV5, Cost> createCost, IEntity entity, ICostV5 entityCost)
        {
            if (entityCost == null)
            {
                return(false);
            }

            var cost = createCost(entityCost);

            cost.CostId  = KeyMasterOffsetManager.GetKeyOffset(entityCost.PersonId).VisitCostId;
            cost.EventId = eventId;

            return(ChunkData.AddCostData(cost));
        }