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