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: 

pure-ftp

pure-pw useradd $USERNAME -u ftpuser -d /home/ftpuser -m

Kategoria: 

System service

[Unit]
Description=Example .NET Web API App running on Ubuntu
 
[Service]
WorkingDirectory=/var/www/helloapp
ExecStart=/usr/bin/dotnet /var/www/helloapp/helloapp.dll
Restart=always
# Restart service after 10 seconds if the dotnet service crashes:
RestartSec=10
KillSignal=SIGINT
SyslogIdentifier=dotnet-example
User=www-data
Environment=ASPNETCORE_ENVIRONMENT=Production
Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false
 
[Install]
WantedBy=multi-user.target

sudo systemctl enable kestrel-helloapp.service
Kategoria: 

polly

TimeoutStrategy.
ServiceDiscover

Kategoria: 

Strony

Subskrybuj Notatnik RSS