Click here to Skip to main content
14,542,667 members

.NET Framework

 
QuestionHow to know which Id belongs to which object? Pin
simpledeveloper30-Mar-20 12:29
Membersimpledeveloper30-Mar-20 12:29 
AnswerRe: How to know which Id belongs to which object? Pin
Eddy Vluggen30-Mar-20 13:06
professionalEddy Vluggen30-Mar-20 13:06 
GeneralRe: How to know which Id belongs to which object? Pin
simpledeveloper30-Mar-20 19:46
Membersimpledeveloper30-Mar-20 19:46 
AnswerRe: How to know which Id belongs to which object? Pin
Richard Deeming31-Mar-20 1:10
mveRichard Deeming31-Mar-20 1:10 
GeneralRe: How to know which Id belongs to which object? Pin
simpledeveloper1-Apr-20 10:35
Membersimpledeveloper1-Apr-20 10:35 
GeneralRe: How to know which Id belongs to which object? Pin
Richard Deeming1-Apr-20 13:05
mveRichard Deeming1-Apr-20 13:05 
GeneralRe: How to know which Id belongs to which object? Pin
simpledeveloper2-Apr-20 6:30
Membersimpledeveloper2-Apr-20 6:30 
QuestionAn expression tree lambda may not contain a null propagating operator Pin
simpledeveloper27-Mar-20 21:38
Membersimpledeveloper27-Mar-20 21:38 
I am getting the following error when I am write the following Linq - can somebody please suggest me to write the same without getting the error.
My Linq is as follows:
myOrphanList =
        (
            from v in allViolations
            from r in allInspectionResults
            from i in allItems
            where
                r.InspectionResultId == i.InspectionResultId &&
                i.InspectionItemId == v.InspectionItemId
            select new OrphanViolationsReport
            {
                ViolationId = v.ViolationId,
                ViolationNumber = v.ViolationNumber,
                ViolationDate = v.ViolationDate,
                ViolationType = v.ViolationType.ViolationTypeCode,
                ItemYear = i.ItemYear,
                ItemMakeManufacturer = i.ItemMakeManufacturer,
                ItemModel = i.ItemModel,
                VIN = i.VIN,
                PIN = i.PIN,
                InspectionResultId = r.InspectionResultId,
                InspectionResultNumber = r.InspectionRequestNumber,
                DealerDmvNumber = r.DealerDmvNumber,
                InspectedCompanyName = (from a in contacts where a.ContactId == r.InspectedCompanyDataId select a.FirstName)?.FirstOrDefault()
            }
        ).ToList();

At the line "InspectedCompanyName = (from a in contacts where a.ContactId == r.InspectedCompanyDataId select a.FirstName)?.FirstOrDefault()"
I am getting following error - how can I get rid of it - thank you
An expression tree lambda may not contain a null propagating operator

Any help please
AnswerRe: An expression tree lambda may not contain a null propagating operator Pin
Richard MacCutchan27-Mar-20 23:48
mveRichard MacCutchan27-Mar-20 23:48 
AnswerRe: An expression tree lambda may not contain a null propagating operator Pin
Bohdan Stupak28-Mar-20 4:38
professionalBohdan Stupak28-Mar-20 4:38 
QuestionColumn length change using Entity Framework Code First Pin
simpledeveloper17-Mar-20 13:59
Membersimpledeveloper17-Mar-20 13:59 
AnswerRe: Column length change using Entity Framework Code First Pin
Gerry Schmitz17-Mar-20 16:22
mveGerry Schmitz17-Mar-20 16:22 
GeneralRe: Column length change using Entity Framework Code First Pin
simpledeveloper18-Mar-20 3:28
Membersimpledeveloper18-Mar-20 3:28 
AnswerRe: Column length change using Entity Framework Code First Pin
Richard Deeming17-Mar-20 23:52
mveRichard Deeming17-Mar-20 23:52 
GeneralRe: Column length change using Entity Framework Code First Pin
simpledeveloper18-Mar-20 3:14
Membersimpledeveloper18-Mar-20 3:14 
GeneralRe: Column length change using Entity Framework Code First Pin
Richard Deeming18-Mar-20 3:55
mveRichard Deeming18-Mar-20 3:55 
GeneralRe: Column length change using Entity Framework Code First Pin
simpledeveloper18-Mar-20 8:43
Membersimpledeveloper18-Mar-20 8:43 
GeneralRe: Column length change using Entity Framework Code First Pin
Richard Deeming18-Mar-20 8:48
mveRichard Deeming18-Mar-20 8:48 
GeneralRe: Column length change using Entity Framework Code First Pin
simpledeveloper19-Mar-20 5:54
Membersimpledeveloper19-Mar-20 5:54 
Questionc# forms (holy crap i'm not ready for this) Pin
Uranium-23513-Mar-20 23:51
MemberUranium-23513-Mar-20 23:51 
AnswerRe: c# forms (holy crap i'm not ready for this) Pin
Richard MacCutchan14-Mar-20 1:07
mveRichard MacCutchan14-Mar-20 1:07 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Uranium-23514-Mar-20 4:37
MemberUranium-23514-Mar-20 4:37 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Dave Kreskowiak14-Mar-20 4:58
mveDave Kreskowiak14-Mar-20 4:58 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Uranium-23514-Mar-20 5:35
MemberUranium-23514-Mar-20 5:35 
GeneralRe: c# forms (holy crap i'm not ready for this) Pin
Dave Kreskowiak14-Mar-20 6:30
mveDave Kreskowiak14-Mar-20 6:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.