예제 #1
0
        public virtual void UpdateByIdOnSubmit(T entity)
        {
            int ID             = (int)(entity.GetType().GetProperty("ID").GetValue(entity, null));
            T   existingEntity = GetSingleById(ID);

            ObjectMapper.CopyObject(entity, existingEntity, AuditInfo.Fields);
        }
예제 #2
0
        public virtual TCostLineItem CopyCostLineItem(TCostLineItem costLine)
        {
            TCostLineItem copyOfCostLine = ObjectMapper.CopyObject <TCostLineItem>(costLine);

            return(copyOfCostLine);
        }