示例#1
0
        public void Insert(Tidings tidings)
        {
            string sql = "INSERT INTO T_Tidings(tidings_commentid,tidings_postuser,tidings_postcontent,tidings_reviceuser,tidings_isread,tidings_url,tidings_additionaldata,tidings_senddate) " +
                         "VALUES (@CommentId,@PostUser,@PostContent,@ReviceUser,@IsRead,@Url,@AdditionalData,@SendDate)";

            DbConnection.Execute(sql, tidings);
        }
示例#2
0
        private IList <Tidings> Map(IEnumerable <dynamic> dynamics)
        {
            IList <Tidings> tidingList = new List <Tidings>();

            foreach (var item in dynamics)
            {
                Tidings tidings = Map(item);
                tidingList.Add(tidings);
            }
            return(tidingList);
        }
示例#3
0
        public void Create(TidingsDTO tidingsDTO)
        {
            Tidings tidings = new Tidings();

            tidings.PostContent    = tidingsDTO.PostContent;
            tidings.PostUser       = tidingsDTO.PostUserAccount;
            tidings.ReviceUser     = tidingsDTO.ReviceUserAccount;
            tidings.Url            = tidingsDTO.Url;
            tidings.CreateTime     = Convert.ToDateTime(tidingsDTO.PostDate);
            tidings.CommentId      = tidingsDTO.CommentId;
            tidings.IsRead         = tidingsDTO.IsRead;
            tidings.AdditionalData = tidingsDTO.Content;
            _tidingsRepository.Insert(tidings);
        }
示例#4
0
 public Tiding()
 {
     _children = new Tidings();
 }
示例#5
0
 public CmsViewComponent(string friendlyName, string className, string typeFullName, Tidings invokeParameters)
     : base(friendlyName, className, typeFullName, invokeParameters)
 {
 }