/* 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. ProviderComment aComment = (ProviderComment)untyped; _entityComment.CreateDate = aComment._entityComment.CreateDate; _entityComment.EditDate = aComment._entityComment.EditDate; _entityComment.IsHidden = aComment._entityComment.IsHidden; _entityComment.IsFlagged = aComment._entityComment.IsFlagged; _entityComment.Text = aComment._entityComment.Text; _entityComment.IsHidden = aComment._entityComment.IsHidden; _entityComment.ConversationId = aComment._entityComment.ConversationId; _entityComment.MemberId = aComment._entityComment.MemberId; _entityComment.IgnoreFlags = aComment._entityComment.IgnoreFlags; _entityObject = _entityComment; return true; }*/ //========================================================= // PRIVATE FUNCTIONS //========================================================= protected ProviderComment(Comment aComment) : base(aComment) { }
protected override void EntityClear() { _entityComment = new Comment(); _entityComment.Id = -1; _entityComment.SystemCreateDate = new DateTime(); _entityComment.SystemEditDate = new DateTime(); _entityComment.CreateDate = new DateTime(); _entityComment.EditDate = new DateTime(); _entityComment.IsFlagged = 0; _entityComment.Text = String.Empty; _entityComment.IsHidden = false; _entityComment.ConversationId = -1; _entityComment.IgnoreFlags = false; _entityComment.MemberId = null; }
/// <summary> /// Deprecated Method for adding a new object to the Comments EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToComments(Comment comment) { base.AddObject("Comments", comment); }
protected static ProviderComment _EntityToProvider(Comment commentEntity) { return new ProviderComment(commentEntity); }
/// <summary> /// Create a new Comment object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="conversationId">Initial value of the ConversationId property.</param> /// <param name="editDate">Initial value of the EditDate property.</param> /// <param name="createDate">Initial value of the CreateDate property.</param> /// <param name="text">Initial value of the Text property.</param> /// <param name="isHidden">Initial value of the IsHidden property.</param> /// <param name="isFlagged">Initial value of the IsFlagged property.</param> /// <param name="systemEditDate">Initial value of the SystemEditDate property.</param> /// <param name="systemCreateDate">Initial value of the SystemCreateDate property.</param> /// <param name="ignoreFlags">Initial value of the IgnoreFlags property.</param> public static Comment CreateComment(global::System.Int64 id, global::System.Int64 conversationId, global::System.DateTime editDate, global::System.DateTime createDate, global::System.String text, global::System.Boolean isHidden, global::System.Int32 isFlagged, global::System.DateTime systemEditDate, global::System.DateTime systemCreateDate, global::System.Boolean ignoreFlags) { Comment comment = new Comment(); comment.Id = id; comment.ConversationId = conversationId; comment.EditDate = editDate; comment.CreateDate = createDate; comment.Text = text; comment.IsHidden = isHidden; comment.IsFlagged = isFlagged; comment.SystemEditDate = systemEditDate; comment.SystemCreateDate = systemCreateDate; comment.IgnoreFlags = ignoreFlags; return comment; }