示例#1
0
        public async Task <Domain.DomainModels.SigmaAggregate.Sigma> GetAsync()
        {
            var sigma = await _context.Sigma.FindAsync();

            if (sigma != null)
            {
                await _context.Entry(sigma)
                .Collection(i => i.Devices).LoadAsync();

                await _context.Entry(sigma)
                .Collection(i => i.Unis).LoadAsync();
            }

            return(sigma);
        }