コード例 #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.
     ProviderConversation aConversation = (ProviderConversation)untyped;
     _entityConversation.CreateDate = aConversation._entityConversation.CreateDate;
     _entityConversation.EditDate = aConversation._entityConversation.EditDate;
     _entityConversation.ArticleId = aConversation._entityConversation.ArticleId;
     _entityConversation.MemberId = aConversation._entityConversation.MemberId;
     _entityConversation.PhotoId = aConversation._entityConversation.PhotoId;
     _entityConversation.IsHidden = aConversation._entityConversation.IsHidden;
     _entityObject = _entityConversation;
     return true;
 }*/
 //=========================================================
 // PRIVATE FUNCTIONS
 //=========================================================
 protected ProviderConversation(Conversation aConversation)
     : base(aConversation)
 {
 }
コード例 #2
0
 protected override void EntityClear()
 {
     _entityConversation = new Conversation();
     _entityConversation.Id = -1;
     _entityConversation.CreateDate = new DateTime();
     _entityConversation.EditDate = new DateTime();
     _entityConversation.ArticleId = null;
     _entityConversation.MemberId = null;
     _entityConversation.PhotoId = null;
     _entityConversation.IsHidden = false;
 }
コード例 #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Conversations EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToConversations(Conversation conversation)
 {
     base.AddObject("Conversations", conversation);
 }
コード例 #4
0
 protected static ProviderConversation _EntityToProvider(Conversation conversationEntity)
 {
     return new ProviderConversation(conversationEntity);
 }
コード例 #5
0
 /// <summary>
 /// Create a new Conversation 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>
 public static Conversation CreateConversation(global::System.Int64 id, global::System.DateTime editDate, global::System.DateTime createDate, global::System.Boolean isHidden, global::System.DateTime systemEditDate, global::System.DateTime systemCreateDate)
 {
     Conversation conversation = new Conversation();
     conversation.Id = id;
     conversation.EditDate = editDate;
     conversation.CreateDate = createDate;
     conversation.IsHidden = isHidden;
     conversation.SystemEditDate = systemEditDate;
     conversation.SystemCreateDate = systemCreateDate;
     return conversation;
 }