/// <summary> /// Deprecated Method for adding a new object to the Prescricao EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPrescricao(Prescricao prescricao) { base.AddObject("Prescricao", prescricao); }
/// <summary> /// Create a new Prescricao object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="atendimentoId">Initial value of the AtendimentoId property.</param> public static Prescricao CreatePrescricao(global::System.Int32 id, global::System.Int32 atendimentoId) { Prescricao prescricao = new Prescricao(); prescricao.Id = id; prescricao.AtendimentoId = atendimentoId; return prescricao; }
private void DetachPrescricao(Prescricao entity) { entity.Atendimento = null; }
private bool FilterPrescricao(Prescricao entity) { return (entity.AtendimentoId == this.Id); }
private void AttachPrescricao(Prescricao entity) { entity.Atendimento = this; }