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.
waqar1
Member
118 Points
189 Posts
Mean of this linq Query
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 && x.ReferredFID.HasValue))
AidyF
Star
9204 Points
1570 Posts
Re: Mean of this linq Query
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.