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); }
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); }
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); }
public Tiding() { _children = new Tidings(); }
public CmsViewComponent(string friendlyName, string className, string typeFullName, Tidings invokeParameters) : base(friendlyName, className, typeFullName, invokeParameters) { }