/// <summary>
 /// Create a new Doc object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="contragentId">Initial value of the ContragentId property.</param>
 public static Doc CreateDoc(global::System.Int32 id, global::System.Int32 contragentId)
 {
     Doc doc = new Doc();
     doc.Id = id;
     doc.ContragentId = contragentId;
     return doc;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Docs EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToDocs(Doc doc)
 {
     base.AddObject("Docs", doc);
 }