Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 01, 2013 12:51 PM by AidyF
Feb 01, 2013 12:45 PM|LINK
I am learning linq,
Kindly please tell me the condition which is showing in the below query.
if (SessionManager.BPIContext.WellFieldEntityTypeMappings.Any(x => !x.IsDeleted && x.EntityTypeId.HasValue && x.EntityTypeId.Value != objEntityType.EntityTypeId && x.BusinessEntityTypeID.HasValue && x.BusinessEntityTypeID.Value == objEntityType.EntityTypeId
Feb 01, 2013 12:51 PM|LINK
It is asking if any object in the WellFieldEntityTypeMappings collection has an IsDeleted property of false, and also has an EntityTypeId.HasValue of true, and also has an EntityTypeId.Value than does not equal objEntityType.EntityTypeId, and also has an
BusinessEntityTypeID.HasValue if true, and also has BusinessEntityTypeID.Value equal to objEntityType.EntityTypeId, and also has ReferredFID.HasValue of true.
Basically, it is asking if there are any objects in WellFieldEntityTypeMappings that have an BusinessEntityTypeID that matches objEntityType.EntityTypeId rather than an EntityTypeId that matches it, and the object also has to have a ReferredFID.