예제 #1
0
        public void Insert(int Id, string SName, int?ParentID, decimal?FPrice, string SDesc)
        {
            var item = new TblTestService();

            item.Id = Id;

            item.SName = SName;

            item.ParentID = ParentID;

            item.FPrice = FPrice;

            item.SDesc = SDesc;


            item.Save(UserName);
        }
예제 #2
0
        public void Update(int Id, string SName, int?ParentID, decimal?FPrice, string SDesc)
        {
            var item = new TblTestService();

            item.MarkOld();
            item.IsLoaded = true;

            item.Id = Id;

            item.SName = SName;

            item.ParentID = ParentID;

            item.FPrice = FPrice;

            item.SDesc = SDesc;

            item.Save(UserName);
        }
예제 #3
0
 public bool Destroy(object Id)
 {
     return(TblTestService.Destroy(Id) == 1);
 }
예제 #4
0
 public bool Delete(object Id)
 {
     return(TblTestService.Delete(Id) == 1);
 }