.net inne

WSDL to dotnet class

dotnet tool install --global dotnet-svcutil

dotnet-svcutil http://localhost:50611/Btes.asmx?WSDL

Kategoria: 

gacutil

Developer command prompt for VS 2017

Kategoria: 

Linq

 public List<Platform> SomeMethod()
        {
            List<Marketplace> list = _dbContext.Set<Marketplace>().ToList();
 
            var tree = GetTree(list, 0);
        }
 
        protected List<Tree> GetTree(List<Marketplace> list, int parent)
        {
            return list.Where(x => x.PlatformId == parent).Select(x => new Tree
            {
                Id = x.Id,
                Name = x.Name,
                List = x.PlatformId != x.Id ? GetTree(list, x.Id) : new List<Tree>()
            }).ToList();
        }
Kategoria: 

Strony

Subskrybuj .net inne