Answers for "only specific columns in Linq"

C#
0

only specific columns in Linq

using (var context = new LINQEntities())
            {
                var fileCollection = context.FileRepository.Where(a => a.IsDeleted == false).
                    Select(a => new
                    {
                        FilePath = a.FilePath
                    }
                ).ToList();
            }
Posted by: Guest on February-25-2022

Code answers related to "only specific columns in Linq"

C# Answers by Framework

Browse Popular Code Answers by Language