/// <summary> /// Deserializes the specified configuration in an <see cref="IsPropertyAvailable"/> object /// </summary> /// <param name="configuration">The configuration.</param> /// <returns></returns> public override SqlTag Deserialize(IConfiguration configuration) { IsPropertyAvailable isPropertyAvailable = new IsPropertyAvailable(accessorFactory); isPropertyAvailable.Prepend = ConfigurationUtils.GetStringAttribute(configuration.Attributes, "prepend"); isPropertyAvailable.Property = ConfigurationUtils.GetStringAttribute(configuration.Attributes, "property"); return(isPropertyAvailable); }
public SqlTag Deserialize(XmlNode node) { IsPropertyAvailable available = new IsPropertyAvailable(this._configScope.DataExchangeFactory.AccessorFactory); NameValueCollection attributes = NodeUtils.ParseAttributes(node, this._configScope.Properties); available.Prepend = NodeUtils.GetStringAttribute(attributes, "prepend"); available.Property = NodeUtils.GetStringAttribute(attributes, "property"); return(available); }