public ICompositeMapperBuilder AddComponent(PropertyData propertyData, String componentClassName) { if (Properties[propertyData] != null) { // This is needed for second pass to work properly in the components mapper return (ICompositeMapperBuilder) Properties[propertyData]; } ComponentPropertyMapper componentMapperBuilder = new ComponentPropertyMapper(propertyData, componentClassName); AddComposite(propertyData, componentMapperBuilder); return componentMapperBuilder; }
public ICompositeMapperBuilder AddComponent(PropertyData propertyData, String componentClassName) { if (Properties[propertyData] != null) { // This is needed for second pass to work properly in the components mapper return((ICompositeMapperBuilder)Properties[propertyData]); } ComponentPropertyMapper componentMapperBuilder = new ComponentPropertyMapper(propertyData, componentClassName); AddComposite(propertyData, componentMapperBuilder); return(componentMapperBuilder); }
public ICompositeMapperBuilder AddComponent(PropertyData propertyData, string componentClassName) { if (Properties.ContainsKey(propertyData)) { // This is needed for second pass to work properly in the components mapper return (ICompositeMapperBuilder) Properties[propertyData]; } ICompositeMapperBuilder componentMapperBuilder; //todo: rk - not really reliable I think! if(componentClassName==null) { componentMapperBuilder = new DynamicComponentPropertyMapper(propertyData); } else { componentMapperBuilder = new ComponentPropertyMapper(propertyData, componentClassName); } AddComposite(propertyData, (IPropertyMapper) componentMapperBuilder); return componentMapperBuilder; }
public ICompositeMapperBuilder AddComponent(PropertyData propertyData, string componentClassName) { if (Properties.ContainsKey(propertyData)) { // This is needed for second pass to work properly in the components mapper return((ICompositeMapperBuilder)Properties[propertyData]); } ICompositeMapperBuilder componentMapperBuilder; //todo: rk - not really reliable I think! if (componentClassName == null) { componentMapperBuilder = new DynamicComponentPropertyMapper(propertyData); } else { componentMapperBuilder = new ComponentPropertyMapper(propertyData, componentClassName); } AddComposite(propertyData, (IPropertyMapper)componentMapperBuilder); return(componentMapperBuilder); }