public object ResolveEntityPropertyValue(string rawValue, Type propertyType) { if (!IsValidValue (rawValue)) return false; switch (rawValue.ToLower()) { case "1": case "yes": case "on": case "true": return true; default: return false; } }