예제 #1
0
        internal static void AddTask(string taskName, byte[] taskData)
        {
            stromohabDevEntities db = new stromohabDevEntities();

            task taskToAdd = new task();
            taskToAdd.tName = taskName;
            taskToAdd.tData = taskData;

            db.tasks.AddObject(taskToAdd);

            db.SaveChanges();    

         }
 /// <summary>
 /// Create a new task object.
 /// </summary>
 /// <param name="idTask">Initial value of the idTask property.</param>
 public static task Createtask(global::System.Int32 idTask)
 {
     task task = new task();
     task.idTask = idTask;
     return task;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the tasks EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTotasks(task task)
 {
     base.AddObject("tasks", task);
 }
예제 #4
0
 /// <summary>
 /// Deprecated Method for adding a new object to the tasks EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTotasks(task task)
 {
     base.AddObject("tasks", task);
 }