Esempio n. 1
0
        public void Clone <T>(T obj) where T : class, IModel
        {
            T_MstChecker objdata = obj as T_MstChecker;

            this.CheckerCode = objdata.CheckerCode;
            this.CompanyId   = objdata.CompanyId;
            this.CheckerName = objdata.CheckerName;
            this.MobileNo    = objdata.MobileNo;
            this.TelNo       = objdata.TelNo;
            this.LUT         = objdata.LUT;
        }
Esempio n. 2
0
        public T Copy <T>() where T : class, IModel, new()
        {
            T            obj     = new T();
            T_MstChecker objdata = obj as T_MstChecker;

            objdata.CheckerCode = this.CheckerCode;
            objdata.CompanyId   = this.CompanyId;
            objdata.CheckerName = this.CheckerName;
            objdata.MobileNo    = this.MobileNo;
            objdata.TelNo       = this.TelNo;
            objdata.LUT         = this.LUT;
            return(obj);
        }