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

            if (OwnerColumn != null)
            {
                dbItem = OwnerColumn.GetReference(dbItem);
            }
            return(dbItem?.GetValue(DBColumn));
        }
Exemplo n.º 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);
            }
        }