Ejemplo n.º 1
0
 /// <summary>
 /// Create a new statistic object.
 /// </summary>
 /// <param name="id">Initial value of the id property.</param>
 /// <param name="name">Initial value of the name property.</param>
 /// <param name="value">Initial value of the value property.</param>
 /// <param name="date_collected">Initial value of the date_collected property.</param>
 public static statistic Createstatistic(global::System.Int32 id, global::System.String name, global::System.Int32 value, global::System.DateTime date_collected)
 {
     statistic statistic = new statistic();
     statistic.id = id;
     statistic.name = name;
     statistic.value = value;
     statistic.date_collected = date_collected;
     return statistic;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the statistics EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTostatistics(statistic statistic)
 {
     base.AddObject("statistics", statistic);
 }