Ejemplo n.º 1
0
 protected override void EntityClear()
 {
     _entityArticle = new Article();
     _entityArticle.Id = -1;
     _entityArticle.SystemCreateDate = new DateTime();
     _entityArticle.SystemEditDate = new DateTime();
     _entityArticle.CreateDate = new DateTime();
     _entityArticle.EditDate = new DateTime();
     _entityArticle.IsHidden = false;
     _entityArticle.Title = String.Empty;
     _entityArticle.Blurb = String.Empty;
     _entityArticle.ReadCount = 0;
     _entityArticle.IgnoreFlags = false;
     _entityArticle.IsPublished = false;
     _entityArticle.BlurbIsAutoGen = true;
 }
Ejemplo n.º 2
0
 protected static ProviderArticle _EntityToProvider(Article articleEntity)
 {
     return new ProviderArticle(articleEntity);
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Articles EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToArticles(Article article)
 {
     base.AddObject("Articles", article);
 }
Ejemplo n.º 4
0
 protected ProviderArticle(Article anArticle)
     : base(anArticle)
 {
 }
 /// <summary>
 /// Create a new Article object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="editDate">Initial value of the EditDate property.</param>
 /// <param name="createDate">Initial value of the CreateDate property.</param>
 /// <param name="isHidden">Initial value of the IsHidden property.</param>
 /// <param name="systemEditDate">Initial value of the SystemEditDate property.</param>
 /// <param name="systemCreateDate">Initial value of the SystemCreateDate property.</param>
 /// <param name="readCount">Initial value of the ReadCount property.</param>
 /// <param name="ignoreFlags">Initial value of the IgnoreFlags property.</param>
 /// <param name="isPublished">Initial value of the IsPublished property.</param>
 /// <param name="blurbIsAutoGen">Initial value of the BlurbIsAutoGen property.</param>
 /// <param name="title">Initial value of the Title property.</param>
 public static Article CreateArticle(global::System.Int64 id, global::System.DateTime editDate, global::System.DateTime createDate, global::System.Boolean isHidden, global::System.DateTime systemEditDate, global::System.DateTime systemCreateDate, global::System.Int32 readCount, global::System.Boolean ignoreFlags, global::System.Boolean isPublished, global::System.Boolean blurbIsAutoGen, global::System.String title)
 {
     Article article = new Article();
     article.Id = id;
     article.EditDate = editDate;
     article.CreateDate = createDate;
     article.IsHidden = isHidden;
     article.SystemEditDate = systemEditDate;
     article.SystemCreateDate = systemCreateDate;
     article.ReadCount = readCount;
     article.IgnoreFlags = ignoreFlags;
     article.IsPublished = isPublished;
     article.BlurbIsAutoGen = blurbIsAutoGen;
     article.Title = title;
     return article;
 }