コード例 #1
0
        public TransactionType ConvertToBusinessLogicEntity(DalTransactionType dataEntity)
        {
            var result = new TransactionType(dataEntity.Id, dataEntity.Text);

            result.IsDirty = false;
            return(result);
        }
コード例 #2
0
        public ApiTransactionType ConvertToApiEntity(DalTransactionType dataEntity)
        {
            var result = new ApiTransactionType(dataEntity.Id, dataEntity.Text);

            result.IsDirty           = dataEntity.IsDirty;
            result.IsMarkForDeletion = dataEntity.IsMarkForDeletion;
            return(result);
        }
コード例 #3
0
        public DalTransactionType ConvertToDALEntity(TransactionType businessEntity)
        {
            var result = new DalTransactionType(businessEntity.Id, businessEntity.Text, businessEntity.Id);

            return(result);
        }