Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "mentium"

Hi ismcagdas

It was exactly what I needed, thanks.

Answer

Hi @alper

Thanks for your answer.

It could be nice to have a generic tool to handle that.

Today i'm using my own function to map from aggregate root dto to entity, but when it is more than one level i have to write a lot of code to handle it.

protected void UpdateNavigationProps<TKye, TDto, TEntity>(List<TDto> dtos, ICollection<TEntity> entities)
            where TEntity : Entity<TKye>, new()
            where TDto : EntityDto<TKye>
        {
            if (dtos == null)
                return;

            if (entities == null)
                entities = new List<TEntity>();

            foreach (var entity in entities.ToList())
            {
                if (!dtos.Any(c => c.Id.Equals(entity.Id)))
                {
                    //Remove
                    entities.Remove(entity);
                }
            }

            foreach (var dto in dtos)
            {
                var entity = entities.FirstOrDefault(p => p.Id.Equals(dto.Id) && !p.Id.Equals(default(long)));
                if (entity == null)
                {
                    //Add
                    entities.Add(ObjectMapper.Map<TEntity>(dto));
                }
                else
                {
                    ObjectMapper.Map(dto, entity);
                }
            }
        }

@kythor, wierd, i've actualy tried that also.

Hi

I've tryed these steps but i stil getting error.

I'm using asp.net core / angular

2018-03-01T11:35:07.3784052Z ============================================================================== 2018-03-01T11:35:07.3784278Z Task : Command Line 2018-03-01T11:35:07.3784373Z Description : Run a command line with arguments 2018-03-01T11:35:07.3784465Z Version : 1.1.3 2018-03-01T11:35:07.3784594Z Author : Microsoft Corporation 2018-03-01T11:35:07.3784696Z Help : [More Information](<a class="postlink" href="https://go.microsoft.com/fwlink/?LinkID=613735">https://go.microsoft.com/fwlink/?LinkID=613735</a>) 2018-03-01T11:35:07.3784825Z ============================================================================== 2018-03-01T11:35:07.3889844Z ##[command]D:\a\3\s\node_modules.bin\ng.cmd build -prod 2018-03-01T11:35:07.4077115Z The system cannot find the path specified. 2018-03-01T11:35:08.4407169Z ##[error]Process completed with exit code 1.

Steps: 1: Use Yarn 2: Yarn 3: npm build (working folder: "$/PROJECTNAME/Master", npm command: install, arguments: -g @angular/cli) 4: CLI (Tool: $(Build.SourcesDirectory)\node_modules.bin\ng.cmd, arguments: build -prod)

Anybody knows what i'm missing?

Answer

I haven't set it up on azure yet, so I don't know. I just thought i would be a problem.

Answer

Yes, but it us used for frontend/sales website, do you know if there is a way to map for example admin.site.com to the hot part of the site?

Hi @ismcagdas

I've fund the error, it was the cors url where was wrog.

Thanks for the answer.

I have used the method Register from TenantRegistrationController, would this code not role back either?

Showing 1 to 8 of 8 entries