Example #1
0
 public DBItem GetReference(DBItem item)
 {
     if (OwnerColumn != null)
     {
         item = OwnerColumn.GetReference(item);
     }
     return(item?.GetReference(DBColumn));
 }
Example #2
0
        public override object ReadValue(object listItem)
        {
            var dbItem = listItem as DBItem;

            if (OwnerColumn != null)
            {
                dbItem = OwnerColumn.GetReference(dbItem);
            }
            return(dbItem?.GetValue(DBColumn));
        }
Example #3
0
        public override void WriteValue(object listItem, object value)
        {
            var dbItem = listItem as DBItem;

            if (OwnerColumn != null)
            {
                dbItem = OwnerColumn.GetReference(dbItem);
            }
            if (dbItem != null)
            {
                dbItem.SetValue(value, DBColumn);
            }
        }