Esempio n. 1
0
 /* 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.
     //Do not copy over the system times and only the business logic
     //times since the system times are specific to a given instance.
     ProviderArticleScore aArticleScore = (ProviderArticleScore)untyped;
     _entityArticleScore.Score = aArticleScore._entityArticleScore.Score;
     _entityArticleScore.ArticleId = aArticleScore._entityArticleScore.ArticleId;
     _entityObject = _entityArticleScore;
     return true;
 }*/
 //=========================================================
 // PRIVATE FUNCTIONS
 //=========================================================
 protected ProviderArticleScore(ArticleScore anArticleScore)
     : base(anArticleScore)
 {
 }
Esempio n. 2
0
 protected override void EntityClear()
 {
     _entityArticleScore = new ArticleScore();
     _entityArticleScore.Id = -1;
     _entityArticleScore.SystemCreateDate = new DateTime();
     _entityArticleScore.SystemEditDate = new DateTime();
     _entityArticleScore.ArticleId = -1;
     _entityArticleScore.Score = 0;
     _entityArticleScore.ScoreType = (int)ScoreTypeEnum.None;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the ArticleScores EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToArticleScores(ArticleScore articleScore)
 {
     base.AddObject("ArticleScores", articleScore);
 }
Esempio n. 4
0
 protected static ProviderArticleScore _EntityToProvider(ArticleScore ArticleScoreEntity)
 {
     return new ProviderArticleScore(ArticleScoreEntity);
 }
 /// <summary>
 /// Create a new ArticleScore object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="systemEditDate">Initial value of the SystemEditDate property.</param>
 /// <param name="systemCreateDate">Initial value of the SystemCreateDate property.</param>
 /// <param name="articleId">Initial value of the ArticleId property.</param>
 /// <param name="score">Initial value of the Score property.</param>
 /// <param name="scoreType">Initial value of the ScoreType property.</param>
 public static ArticleScore CreateArticleScore(global::System.Int64 id, global::System.DateTime systemEditDate, global::System.DateTime systemCreateDate, global::System.Int64 articleId, global::System.Double score, global::System.Int32 scoreType)
 {
     ArticleScore articleScore = new ArticleScore();
     articleScore.Id = id;
     articleScore.SystemEditDate = systemEditDate;
     articleScore.SystemCreateDate = systemCreateDate;
     articleScore.ArticleId = articleId;
     articleScore.Score = score;
     articleScore.ScoreType = scoreType;
     return articleScore;
 }