Generate LINQ2SQL classes
It would be handy if LINQPad could assist in quickly generate LINQ2SQL classes for a database a la SQLmetal.
-
Anonymous commented
It would be nice to be able to select a .Select() and right-click generate classes for the following Anonymous Select().
var customControls = AssessmentSectionControls
.Where(asc => asc.Section.AssessmentID == assessmentId && asc.QuestionID == null)
.Select(asc => new
{
asc.ID,
asc.Name,
asc.Active,
Documents = asc.Documents
.Where(d => d.Document.Active && !d.Document.QuasiDeleted)
.Select(d => new
{
d.DocumentID,
d.Document.Description,
d.Document.OriginalFileName
})
});