Пример #1
0
        public bool Sync()
        {
            DbModel m = new DbModel("Contact");
            IDataReader r = m.GetById(this.Id);
            bool success = false;

            if(r.Read())
            {
                this.Name = (string) r["Name"];
                this.PhoneNumber = r["PhoneNumber"].ToString();
                success = true;
            }

            return success;
        }