Ejemplo n.º 1
0
        private void buttonItemInsert_Click(object sender, RoutedEventArgs e)
        {
            WorkItem wi = new WorkItem();
            wi.created = DateTime.Now;
            wi.description = "jepp";

            OliWorkerContainer db = new OliWorkerContainer();
            db.AddToWorkItem(wi);
            db.SaveChanges();
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the WorkItem EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToWorkItem(WorkItem workItem)
 {
     base.AddObject("WorkItem", workItem);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Create a new WorkItem object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="created">Initial value of the created property.</param>
 /// <param name="description">Initial value of the description property.</param>
 /// <param name="imageurl">Initial value of the imageurl property.</param>
 public static WorkItem CreateWorkItem(global::System.Int32 id, global::System.DateTime created, global::System.String description, global::System.String imageurl)
 {
     WorkItem workItem = new WorkItem();
     workItem.Id = id;
     workItem.created = created;
     workItem.description = description;
     workItem.imageurl = imageurl;
     return workItem;
 }