示例#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);
 }