コード例 #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.
     ProviderConversationVote anConversationVote = (ProviderConversationVote)untyped;
     _entityConversationVote.IsHidden = anConversationVote._entityConversationVote.IsHidden;
     _entityConversationVote.IsFlag = anConversationVote._entityConversationVote.IsFlag;
     _entityConversationVote.VoteWeight = anConversationVote._entityConversationVote.VoteWeight;
     _entityConversationVote.Text = anConversationVote._entityConversationVote.Text;
     _entityConversationVote.IsHidden = anConversationVote._entityConversationVote.IsHidden;
     _entityConversationVote.ConversationId = anConversationVote._entityConversationVote.ConversationId;
     _entityConversationVote.MemberId = anConversationVote._entityConversationVote.MemberId;
     _entityObject = _entityConversationVote;
     return true;
 }*/
 //=========================================================
 // PRIVATE FUNCTIONS
 //=========================================================
 protected ProviderConversationVote(ConversationVote aConversationVote)
     : base(aConversationVote)
 {
 }
コード例 #2
0
 protected override void EntityClear()
 {
     _entityConversationVote = new ConversationVote();
     _entityConversationVote.Id = -1;
     _entityConversationVote.SystemCreateDate = new DateTime();
     _entityConversationVote.SystemEditDate = new DateTime();
     _entityConversationVote.IsFlag = false;
     _entityConversationVote.VoteWeight = 0;
     _entityConversationVote.Text = String.Empty;
     _entityConversationVote.IsHidden = false;
     _entityConversationVote.ConversationId = -1;
     _entityConversationVote.MemberId = null;
 }
コード例 #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ConversationVotes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToConversationVotes(ConversationVote conversationVote)
 {
     base.AddObject("ConversationVotes", conversationVote);
 }
コード例 #4
0
 protected static ProviderConversationVote _EntityToProvider(ConversationVote conversationVoteEntity)
 {
     return new ProviderConversationVote(conversationVoteEntity);
 }
コード例 #5
0
 /// <summary>
 /// Create a new ConversationVote object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="conversationId">Initial value of the ConversationId 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 ConversationVote CreateConversationVote(global::System.Int64 id, global::System.Int64 conversationId, 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)
 {
     ConversationVote conversationVote = new ConversationVote();
     conversationVote.Id = id;
     conversationVote.ConversationId = conversationId;
     conversationVote.IsFlag = isFlag;
     conversationVote.Text = text;
     conversationVote.IsHidden = isHidden;
     conversationVote.SystemEditDate = systemEditDate;
     conversationVote.SystemCreateDate = systemCreateDate;
     conversationVote.IsShadowVote = isShadowVote;
     conversationVote.VoteWeight = voteWeight;
     return conversationVote;
 }