Class FieldOptionMetadataSqlSource
- Namespace
 - Dynamicweb.Content.Items.Metadata
 
- Assembly
 - Dynamicweb.dll
 
[DataContract]
public class FieldOptionMetadataSqlSource : FieldOptionMetadataSource, IComparable<FieldOptionMetadataSource>
  - Inheritance
 - 
      
      
      FieldOptionMetadataSqlSource
 
- Implements
 
- Inherited Members
 
Constructors
FieldOptionMetadataSqlSource()
Creates a new instance of a class.
  
  public FieldOptionMetadataSqlSource()
  FieldOptionMetadataSqlSource(string)
Creates a new instance of a class.
  
  public FieldOptionMetadataSqlSource(string queryString)
  Parameters
queryStringstring- Query string for fetching data.
 
FieldOptionMetadataSqlSource(string, string, string)
Creates a new instance of a class.
  
  public FieldOptionMetadataSqlSource(string queryString, string nameField, string valueField)
  Parameters
queryStringstring- Query string for fetching data.
 nameFieldstring- Field name for representing 'name' field value.
 valueFieldstring- Field name for representing 'value' field value.
 
FieldOptionMetadataSqlSource(string, string, string, string)
Creates a new instance of a class.
  
  public FieldOptionMetadataSqlSource(string queryString, string nameField, string valueField, string database)
  Parameters
queryStringstring- Query string for fetching data.
 nameFieldstring- Field name for representing 'name' field value.
 valueFieldstring- Field name for representing 'value' field value.
 databasestring- Access database.
 
Properties
AccessDb
[DataMember]
public string AccessDb { get; set; }
  Property Value
NameField
[DataMember]
public string NameField { get; set; }
  Property Value
QueryString
[DataMember]
public string QueryString { get; set; }
  Property Value
SourceType
Type of source.
  
  [DataMember]
public override FieldOptionSourceType SourceType { get; }
  Property Value
Type
Type of source.
  
  [DataMember]
[Obsolete("Use SourceType instead")]
public override FieldOptionSourceType Type { get; }
  Property Value
ValueField
[DataMember]
public string ValueField { get; set; }
  Property Value
Values
Collection of field options.
  
  public override FieldOptionMetadataCollection Values { get; set; }
  Property Value
Methods
CompareTo(FieldOptionMetadataSource)
Compares the current object with the given one and returns the comparison result.
  
  public override int CompareTo(FieldOptionMetadataSource other)
  Parameters
otherFieldOptionMetadataSource- Object to compare with.
 
Returns
- int
 - Comparison result.
 
CopyTo(FieldOptionMetadataSource)
Copies the state of the current object into the given one.
  
  public override void CopyTo(FieldOptionMetadataSource target)
  Parameters
targetFieldOptionMetadataSource- Object to copy state into.
 
Exceptions
- ArgumentNullException
 targetis null.
DeserializeFrom(XmlReader)
Deserializes a current instance of a class from specific source.
  
  public override void DeserializeFrom(XmlReader reader)
  Parameters
readerXmlReader- Xml Reader
 
SerializeTo(XmlWriter)
Serializes a current instance of class to specific source.
  
  public override void SerializeTo(XmlWriter writer)
  Parameters
writerXmlWriter- Xml Writer
 
Update()
Updates source collection
  
  public override void Update()