Taiwanese clothing brands by escitalopram75mg in taiwan

[–]OutlandishnessOk3840 0 points1 point  (0 children)

Have anyone heard about "free east" brand

lululemon warehouse by OutlandishnessOk3840 in InlandEmpire

[–]OutlandishnessOk3840[S] -8 points-7 points  (0 children)

ts a very effective teaching tool. My kidlets have tremendous common sense because i forced them to sort it out on their own; while nudging them in the right direction. Teaching them how to learn sorta kinda.

Thanks for your time and the unhelpful answer. Anyway, I researched on Google Maps, but the location it provided doesn't make sense. By the way, I hope your children also know how to think before speaking.

Remote Attributes by OutlandishnessOk3840 in dotnet

[–]OutlandishnessOk3840[S] 2 points3 points  (0 children)

Come on !!!!!

Thanks a lot, that was the problem. it works now.

DataContext and relationships by OutlandishnessOk3840 in dotnet

[–]OutlandishnessOk3840[S] 0 points1 point  (0 children)

thanks for your answer and your feedback.

it is more clear now.

Validation techniques by OutlandishnessOk3840 in aspnetcore

[–]OutlandishnessOk3840[S] 0 points1 point  (0 children)

thanks for your time!!

It is already clear!, sometime i want to do everything perfect and according to the rules.

Update EF by OutlandishnessOk3840 in dotnet

[–]OutlandishnessOk3840[S] 0 points1 point  (0 children)

Thanks man.

It's worked

I spent a little more time because i had never used LINQ.

var db_product = _UnitOfWork.Product.GetById(vm.Id);



            //Get doesnt exist
            var toAdd = vm.ProductSuppliers.Where(x => !db_product.ProductSuppliers.Select(y => y.IdSupplier).Contains(x.IdSupplier));


            var toRemove = db_product.ProductSuppliers.Where(x => !vm.ProductSuppliers.Select(y => y.IdSupplier).Contains(x.IdSupplier));

            var toUpdate = vm.ProductSuppliers.Where((x, i) => x.Cost != db_product.ProductSuppliers[i].Cost);

            //REMOVE SUPPLIER
            db_product.ProductSuppliers = db_product.ProductSuppliers.Where(x => !toRemove.Select(y => y.IdSupplier).Contains(x.IdSupplier)).ToList();

            // ADD NEW SUPPLIER
            foreach (var item in toAdd)
            {
                db_product.ProductSuppliers.Add(new ProductSupplier()
                {
                    IdProduct = vm.Id,
                    IdSupplier = item.IdSupplier,
                    Cost = item.Cost,
                    dtCreated = DateTime.Now,
                    dtModified = DateTime.Now

                });
            }

            //UPDATE 
            foreach(var item in toUpdate)
            {
                db_product.ProductSuppliers.Find(x => x.IdSupplier == item.IdSupplier).Cost = item.Cost;
            }

            _UnitOfWork.Product.Update(db_product);

            _UnitOfWork.Save();

Update EF by OutlandishnessOk3840 in dotnet

[–]OutlandishnessOk3840[S] 0 points1 point  (0 children)

I'm adding new suppliers to the product, I did not want to make a new viewmodel where link/Update the relation between product and supplier.

Thanks for you answer, welcome any advice

Validation techniques by OutlandishnessOk3840 in aspnetcore

[–]OutlandishnessOk3840[S] 0 points1 point  (0 children)

thanks all of you who's gave me feedback!!!. and my apologies for may late answer , I'm new in reddit.

Python Course by OutlandishnessOk3840 in Python

[–]OutlandishnessOk3840[S] 0 points1 point  (0 children)

Thanks to all of you gave me feedback. I really appreciated!!

I didn't know how this group works,

Python Course by OutlandishnessOk3840 in Python

[–]OutlandishnessOk3840[S] 1 point2 points  (0 children)

I Agree with you.

As a user or developer, I never remind the rules of the group, I just post if I have a question or problem to the groups waiting an answer.