Esempio n. 1
0
 private static RecordInfo[] FromRecordToRecordInfo(Record[] records)
 {
     var array = new RecordInfo[records.Count()];
     for (var i = 0; i < records.Count(); i++)
         array[i] = new RecordInfo(records[i].Id, records[i].Title, records[i].Created, records[i].Description);
     return array;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Records EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToRecords(Record record)
 {
     base.AddObject("Records", record);
 }
 /// <summary>
 /// Create a new Record object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="title">Initial value of the Title property.</param>
 /// <param name="created">Initial value of the Created property.</param>
 /// <param name="description">Initial value of the Description property.</param>
 public static Record CreateRecord(global::System.Int32 id, global::System.String title, global::System.DateTime created, global::System.String description)
 {
     Record record = new Record();
     record.Id = id;
     record.Title = title;
     record.Created = created;
     record.Description = description;
     return record;
 }