public override object DeepCopyNotNull(object value) { var original = (T)value; var copy = XmlUtil.FromXml <T>(XmlUtil.ConvertToXml(original)); return(copy); }
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)); }
public override string ToString(object val) { return(val == null ? null : XmlUtil.ConvertToXml(val)); }
public override void Set(IDbCommand cmd, object value, int index) { ((IDataParameter)cmd.Parameters[index]).Value = XmlUtil.ConvertToXml(value); }