Пример #1
0
 /// <summary>
 /// Create a new Enterprise object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="currencyId">Initial value of the CurrencyId property.</param>
 /// <param name="dataBaseName">Initial value of the DataBaseName property.</param>
 public static Enterprise CreateEnterprise(global::System.Int32 id, global::System.String name, global::System.Int32 currencyId, global::System.String dataBaseName)
 {
     Enterprise enterprise = new Enterprise();
     enterprise.Id = id;
     enterprise.Name = name;
     enterprise.CurrencyId = currencyId;
     enterprise.DataBaseName = dataBaseName;
     return enterprise;
 }
Пример #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Enterprises EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToEnterprises(Enterprise enterprise)
 {
     base.AddObject("Enterprises", enterprise);
 }