Пример #1
0
 /// <summary>
 /// When overidden, determines whether the specified field is included in the data set.
 /// </summary>
 /// <param name="fieldName">Field name.</param>
 /// <returns>Returns *true* if the specified field is included in the data set.</returns>
 public override bool HasField(string fieldName)
 {
     string[] mappedNames = SearchServiceHelper.GetManagedPropertyNames(this.Site, fieldName);
     if (mappedNames.Length > 0)
     {
         fieldName = mappedNames[0];
     }
     return(base.HasField(fieldName));
 }
Пример #2
0
 /// <summary>
 /// Gets or sets values to the specified column.
 /// </summary>
 /// <param name="name">Field name.</param>
 /// <returns>Value of the specified column.</returns>
 protected override object this[string name] {
     get {
         string[] mappedNames = SearchServiceHelper.GetManagedPropertyNames(this.Site, name);
         if (mappedNames.Length > 0)
         {
             name = mappedNames[0];
         }
         object value = base[name];
         if (value != DBNull.Value)
         {
             return(value);
         }
         return(null);
     }
     set {
         base[name] = value;
     }
 }