コード例 #1
0
        public void Update(int Id, string Subject, string Content, bool?Deleted, DateTime Createdon, DateTime?Modifiedon, string Createdby, string Modifiedby)
        {
            Helparticle item = new Helparticle();

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

            item.Id = Id;

            item.Subject = Subject;

            item.Content = Content;

            item.Deleted = Deleted;

            item.Createdon = Createdon;

            item.Modifiedon = Modifiedon;

            item.Createdby = Createdby;

            item.Modifiedby = Modifiedby;

            item.Save(UserName);
        }
コード例 #2
0
        public void Insert(string Subject, string Content, bool?Deleted, DateTime Createdon, DateTime?Modifiedon, string Createdby, string Modifiedby)
        {
            Helparticle item = new Helparticle();

            item.Subject = Subject;

            item.Content = Content;

            item.Deleted = Deleted;

            item.Createdon = Createdon;

            item.Modifiedon = Modifiedon;

            item.Createdby = Createdby;

            item.Modifiedby = Modifiedby;


            item.Save(UserName);
        }
コード例 #3
0
 public bool Destroy(object Id)
 {
     return(Helparticle.Destroy(Id) == 1);
 }
コード例 #4
0
 public bool Delete(object Id)
 {
     return(Helparticle.Delete(Id) == 1);
 }