public bool deleteProperty(BusinessProperty businessProperty) { foreach (BusinessProperty property in businessProperties) { if (businessProperty == property) { businessProperties.Remove(businessProperty); break; } } return(true); }
public bool deleteProperty(BusinessProperty businessProperty) { foreach (BusinessProperty property in businessProperties) { if (businessProperty == property) { businessProperties.Remove(businessProperty); break; } } return true; }
public bool addKeyProperty(BusinessProperty keyProperty, string interfaceName) { foreach (BusinessInterface businessInterface in businessInterfaces) { if (businessInterface.interfaceName.ToLower() == interfaceName.ToLower()) { businessInterface.businessProperties.Add(keyProperty); } return(false); } this.businessKeyProperties.Add(new BusinessKeyProperty { keyPropertyName = keyProperty.propertyName }); return(true); }
public bool deleteProperty(BusinessProperty dataProperty) { foreach (BusinessInterface businessInterface in businessInterfaces) { foreach (BusinessProperty property in businessInterface.businessProperties) { if (dataProperty == property) { businessInterface.businessProperties.Remove(dataProperty); break; } } } foreach (BusinessKeyProperty keyProperty in businessKeyProperties) { if (keyProperty.keyPropertyName.ToLower() == dataProperty.propertyName.ToLower()) { businessKeyProperties.Remove(keyProperty); break; } } return(true); }
public bool deleteProperty(BusinessProperty dataProperty) { foreach (BusinessInterface businessInterface in businessInterfaces) { foreach (BusinessProperty property in businessInterface.businessProperties) { if (dataProperty == property) { businessInterface.businessProperties.Remove(dataProperty); break; } } } foreach (BusinessKeyProperty keyProperty in businessKeyProperties) { if (keyProperty.keyPropertyName.ToLower() == dataProperty.propertyName.ToLower()) { businessKeyProperties.Remove(keyProperty); break; } } return true; }
public bool addKeyProperty(BusinessProperty keyProperty, string interfaceName) { foreach (BusinessInterface businessInterface in businessInterfaces) { if (businessInterface.interfaceName.ToLower() == interfaceName.ToLower()) { businessInterface.businessProperties.Add(keyProperty); } return false; } this.businessKeyProperties.Add(new BusinessKeyProperty { keyPropertyName = keyProperty.propertyName }); return true; }