Пример #1
0
        private List <StendList> loadRolInStend(string NStend)
        {
            List <StendList> list = new List <StendList>();

            using (l2dataAVO5Entities dbContext = new l2dataAVO5Entities())
            {
                list = dbContext.sp_web_RollInStend(NStend)
                       .Select(p => new StendList
                {
                    NInStend       = p.NInStend,
                    NStend         = p.Stend,
                    NRoll          = p.LocalId,
                    Length         = p.Length,
                    Weight         = (decimal)p.Weight,
                    Thickness      = (decimal)p.Thickness,
                    DateCreate     = p.DateCreate,
                    DateProduction = (DateTime)p.DateProduction,
                }).ToList();
            }

            return(list);
        }