/// <summary> /// Create a new Document object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="date">Initial value of the Date property.</param> /// <param name="number">Initial value of the Number property.</param> /// <param name="agentFromId">Initial value of the AgentFromId property.</param> /// <param name="agentToId">Initial value of the AgentToId property.</param> /// <param name="summa">Initial value of the Summa property.</param> public static Document CreateDocument(global::System.Int32 id, global::System.String name, global::System.DateTime date, global::System.String number, global::System.Int32 agentFromId, global::System.Int32 agentToId, global::System.Decimal summa) { Document document = new Document(); document.Id = id; document.Name = name; document.Date = date; document.Number = number; document.AgentFromId = agentFromId; document.AgentToId = agentToId; document.Summa = summa; return document; }
/// <summary> /// Deprecated Method for adding a new object to the Documents EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToDocuments(Document document) { base.AddObject("Documents", document); }