/// <summary> /// Create a new BlogEntryEntity object. /// </summary> /// <param name="id">Initial value of the id property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="author">Initial value of the Author property.</param> /// <param name="datePublished">Initial value of the DatePublished property.</param> /// <param name="title">Initial value of the Title property.</param> /// <param name="text">Initial value of the Text property.</param> public static BlogEntryEntity CreateBlogEntryEntity(global::System.Int32 id, global::System.String name, global::System.String author, global::System.DateTime datePublished, global::System.String title, global::System.String text) { BlogEntryEntity blogEntryEntity = new BlogEntryEntity(); blogEntryEntity.id = id; blogEntryEntity.Name = name; blogEntryEntity.Author = author; blogEntryEntity.DatePublished = datePublished; blogEntryEntity.Title = title; blogEntryEntity.Text = text; return(blogEntryEntity); }
//___________________________________ // Blog entry methods //___________________________________ /// <summary> /// Converts from an application Blog Entry /// to an Entity Framework BlogEntryEntity. /// </summary> private BlogEntryEntity ConvertBlogEntryToBlogEntryEntity(BlogEntry entry) { var entity = new BlogEntryEntity(); entity.id = entry.id; entity.Author = entry.Author; entity.Description = entry.Description; entity.Name = entry.Name; entity.DatePublished = entry.DatePublished; entity.Text = entry.Text; entity.Title = entry.Title; return(entity); }
private BlogEntryEntity ConvertBlogEntryToBlogEntryEntity(BlogEntry entry) { var entity = new BlogEntryEntity(); entity.Id = entry.Id; entity.Author = entry.Author; entity.Description = entry.Description; entity.Name = entry.Name; entity.DatePublished = entry.DatePublished; entity.Text = entry.Text; entity.Title = entry.Title; return entity; }
/// <summary> /// Deprecated Method for adding a new object to the BlogEntryEntities EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToBlogEntryEntities(BlogEntryEntity blogEntryEntity) { base.AddObject("BlogEntryEntities", blogEntryEntity); }
/// <summary> /// Deprecated Method for adding a new object to the BlogEntryEntities EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToBlogEntryEntities(BlogEntryEntity blogEntryEntity) { base.AddObject("BlogEntryEntities", blogEntryEntity); }
/// <summary> /// Create a new BlogEntryEntity object. /// </summary> /// <param name="id">Initial value of the id property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="author">Initial value of the Author property.</param> /// <param name="datePublished">Initial value of the DatePublished property.</param> /// <param name="title">Initial value of the Title property.</param> /// <param name="text">Initial value of the Text property.</param> public static BlogEntryEntity CreateBlogEntryEntity(global::System.Int32 id, global::System.String name, global::System.String author, global::System.DateTime datePublished, global::System.String title, global::System.String text) { BlogEntryEntity blogEntryEntity = new BlogEntryEntity(); blogEntryEntity.id = id; blogEntryEntity.Name = name; blogEntryEntity.Author = author; blogEntryEntity.DatePublished = datePublished; blogEntryEntity.Title = title; blogEntryEntity.Text = text; return blogEntryEntity; }