public Boolean CanWriteForWikipedia() { Boolean lResult = EntityTypeHelper.IsCompatibleEntityType(Type, EntityType.Amphoe); if (Type == EntityType.Tambon) { lResult = SubEntities.Find( delegate(PopulationDataEntry lEntry) { return(lEntry.Type == EntityType.Muban); }) != null; } return(lResult); }
public ContextSubEntity GetSubEntity(SubEntityBindingPointCategoryEnum category) { return(SubEntities.Find(x => x.Category == category)); }