Esempio n. 1
0
        public override object DeepCopyNotNull(object value)
        {
            var original = (T)value;
            var copy     = XmlUtil.FromXml <T>(XmlUtil.ConvertToXml(original));

            return(copy);
        }
Esempio n. 2
0
 public override bool IsEqual(object x, object y)
 {
     if (x == null && y == null)
     {
         return(true);
     }
     if (x == null || y == null)
     {
         return(false);
     }
     return(XmlUtil.ConvertToXml(x) == XmlUtil.ConvertToXml(y));
 }
Esempio n. 3
0
 public override string ToString(object val)
 {
     return(val == null ? null : XmlUtil.ConvertToXml(val));
 }
Esempio n. 4
0
 public override void Set(IDbCommand cmd, object value, int index)
 {
     ((IDataParameter)cmd.Parameters[index]).Value = XmlUtil.ConvertToXml(value);
 }