/* TODO: revisit all copy functions override public bool Copy(Provider untyped) { //Never copy over the id, otherwise we would be creating //a pseudo-reference copy, which we don't want. ProviderArticleVote anArticleVote = (ProviderArticleVote)untyped; _entityArticleVote.IsHidden = anArticleVote._entityArticleVote.IsHidden; _entityArticleVote.IsFlag = anArticleVote._entityArticleVote.IsFlag; _entityArticleVote.VoteWeight = anArticleVote._entityArticleVote.VoteWeight; _entityArticleVote.Text = anArticleVote._entityArticleVote.Text; _entityArticleVote.IsHidden = anArticleVote._entityArticleVote.IsHidden; _entityArticleVote.ArticleId = anArticleVote._entityArticleVote.ArticleId; _entityArticleVote.MemberId = anArticleVote._entityArticleVote.MemberId; _entityObject = _entityArticleVote; return true; }*/ //========================================================= // PRIVATE FUNCTIONS //========================================================= protected ProviderArticleVote(ArticleVote anArticleVote) : base(anArticleVote) { }
protected override void EntityClear() { _entityArticleVote = new ArticleVote(); _entityArticleVote.Id = -1; _entityArticleVote.SystemCreateDate = new DateTime(); _entityArticleVote.SystemEditDate = new DateTime(); _entityArticleVote.IsFlag = false; _entityArticleVote.VoteWeight = 0; _entityArticleVote.Text = String.Empty; _entityArticleVote.IsHidden = false; _entityArticleVote.ArticleId = -1; _entityArticleVote.MemberId = null; }
/// <summary> /// Deprecated Method for adding a new object to the ArticleVotes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToArticleVotes(ArticleVote articleVote) { base.AddObject("ArticleVotes", articleVote); }
protected static ProviderArticleVote _EntityToProvider(ArticleVote photoVoteEntity) { return new ProviderArticleVote(photoVoteEntity); }
/// <summary> /// Create a new ArticleVote object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="articleId">Initial value of the ArticleId property.</param> /// <param name="isFlag">Initial value of the IsFlag property.</param> /// <param name="text">Initial value of the Text 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="isShadowVote">Initial value of the IsShadowVote property.</param> /// <param name="voteWeight">Initial value of the VoteWeight property.</param> public static ArticleVote CreateArticleVote(global::System.Int64 id, global::System.Int64 articleId, global::System.Boolean isFlag, global::System.String text, global::System.Boolean isHidden, global::System.DateTime systemEditDate, global::System.DateTime systemCreateDate, global::System.Boolean isShadowVote, global::System.Int32 voteWeight) { ArticleVote articleVote = new ArticleVote(); articleVote.Id = id; articleVote.ArticleId = articleId; articleVote.IsFlag = isFlag; articleVote.Text = text; articleVote.IsHidden = isHidden; articleVote.SystemEditDate = systemEditDate; articleVote.SystemCreateDate = systemCreateDate; articleVote.IsShadowVote = isShadowVote; articleVote.VoteWeight = voteWeight; return articleVote; }