Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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();
            }
Source by www.syncfusion.com #
 
PREVIOUS NEXT
Tagged: #specific #columns #Linq
ADD COMMENT
Topic
Name
8+5 =