using System; using System.Collections.Generic; using System.Text; namespace JiepeiWMS.Common { public static class ExtObject { /// /// 转换数据库字符串 /// /// 数据库字符串 /// public static string _ToDbStr(this object SrcObj) { return SrcObj == DBNull.Value ? string.Empty : SrcObj.ToString(); } /// /// 获取引用对象(用于反射成员) /// /// 对象 /// 引用对象 public static ComRefObj _GetRefObj(this object Src) { return new ComRefObj(Src); } } }