예제 #1
0
        public SmsinfomsgModel FindOne(int ID)
        {
            SmsinfomsgRepository _repo  = new SmsinfomsgRepository();
            SmsinfomsgModel      theMsg = _repo.FindAll("ID=" + ID.ToString())[0];

            this.ID           = theMsg.ID;
            this.Name         = theMsg.Name;
            this.Text         = theMsg.Text;
            this.SmsinfosprID = theMsg.SmsinfosprID;

            return(this);
        }
예제 #2
0
        public void Delete()
        {
            SmsinfomsgRepository _repo = new SmsinfomsgRepository();

            _repo.Delete(this);
        }
예제 #3
0
        public void Update()
        {
            SmsinfomsgRepository _repo = new SmsinfomsgRepository();

            _repo.Update(this);
        }
예제 #4
0
        public void Create()
        {
            SmsinfomsgRepository _repo = new SmsinfomsgRepository();

            _repo.Create(this);
        }
예제 #5
0
        public List <SmsinfomsgModel> FindAll(string condition = "", string order = "")
        {
            SmsinfomsgRepository _repo = new SmsinfomsgRepository();

            return(_repo.FindAll(condition, order));
        }