/// <summary> /// Create a new CommentEntity object. /// </summary> /// <param name="id">Initial value of the id property.</param> /// <param name="blogEntryId">Initial value of the BlogEntryId property.</param> /// <param name="title">Initial value of the Title property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="datePublished">Initial value of the DatePublished property.</param> /// <param name="text">Initial value of the Text property.</param> public static CommentEntity CreateCommentEntity(global::System.Int32 id, global::System.Int32 blogEntryId, global::System.String title, global::System.String name, global::System.DateTime datePublished, global::System.String text) { CommentEntity commentEntity = new CommentEntity(); commentEntity.id = id; commentEntity.BlogEntryId = blogEntryId; commentEntity.Title = title; commentEntity.Name = name; commentEntity.DatePublished = datePublished; commentEntity.Text = text; return(commentEntity); }
//__________________________ // Comment methods //___________________________ /// <summary> /// Converts an application Comment to a Microsoft Entity Framework /// Comment entity. /// </summary> private CommentEntity ConvertCommentToCommentEntity(Comment comment) { var entity = new CommentEntity(); entity.id = comment.id; entity.BlogEntryId = comment.BlogEntryId; entity.DatePublished = comment.DatePublished; entity.Email = comment.Email; entity.Name = comment.Name; entity.Text = comment.Text; entity.Title = comment.Title; entity.Url = comment.Url; return(entity); }
//__________________________ // Comment methods //___________________________ /// <summary> /// Converts an application Comment to a Microsoft Entity Framework /// Comment entity. /// </summary> private CommentEntity ConvertCommentToCommentEntity(Comment comment) { var entity = new CommentEntity(); entity.Id = comment.Id; entity.BlogEntryId = comment.BlogEntryId; entity.DatePublished = comment.DatePublished; entity.Email = comment.Email; entity.Name = comment.Name; entity.Text = comment.Text; entity.Title = comment.Title; entity.Url = comment.Url; return entity; }
/// <summary> /// Deprecated Method for adding a new object to the CommentEntities EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCommentEntities(CommentEntity commentEntity) { base.AddObject("CommentEntities", commentEntity); }
/// <summary> /// Create a new CommentEntity object. /// </summary> /// <param name="id">Initial value of the id property.</param> /// <param name="blogEntryId">Initial value of the BlogEntryId property.</param> /// <param name="title">Initial value of the Title property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="datePublished">Initial value of the DatePublished property.</param> /// <param name="text">Initial value of the Text property.</param> public static CommentEntity CreateCommentEntity(global::System.Int32 id, global::System.Int32 blogEntryId, global::System.String title, global::System.String name, global::System.DateTime datePublished, global::System.String text) { CommentEntity commentEntity = new CommentEntity(); commentEntity.id = id; commentEntity.BlogEntryId = blogEntryId; commentEntity.Title = title; commentEntity.Name = name; commentEntity.DatePublished = datePublished; commentEntity.Text = text; return commentEntity; }
/// <summary> /// Deprecated Method for adding a new object to the CommentEntities EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCommentEntities(CommentEntity commentEntity) { base.AddObject("CommentEntities", commentEntity); }