Esempio n. 1
0
 public void AddTaskFileMapping(string guid, string fileName, string relativePath, TaskFileType type, bool isDownloadable)
 {
     using (OOCEntities db = new OOCEntities())
     {
         TaskFileMapping taskFileMapping = new TaskFileMapping()
         {
             taskGuid = guid,
             fileName = fileName,
             relativePath = relativePath,
             type = (sbyte)type,
             isDownloadable = isDownloadable
         };
         try
         {
             db.TaskFileMapping.AddObject(taskFileMapping);
             db.SaveChanges();
         }
         catch { }
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Create a new TaskFileMapping object.
 /// </summary>
 /// <param name="taskGuid">Initial value of the taskGuid property.</param>
 /// <param name="fileName">Initial value of the fileName property.</param>
 /// <param name="type">Initial value of the type property.</param>
 /// <param name="isDownloadable">Initial value of the isDownloadable property.</param>
 /// <param name="relativePath">Initial value of the relativePath property.</param>
 public static TaskFileMapping CreateTaskFileMapping(global::System.String taskGuid, global::System.String fileName, global::System.SByte type, global::System.Boolean isDownloadable, global::System.String relativePath)
 {
     TaskFileMapping taskFileMapping = new TaskFileMapping();
     taskFileMapping.taskGuid = taskGuid;
     taskFileMapping.fileName = fileName;
     taskFileMapping.type = type;
     taskFileMapping.isDownloadable = isDownloadable;
     taskFileMapping.relativePath = relativePath;
     return taskFileMapping;
 }
Esempio n. 3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the TaskFileMapping EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTaskFileMapping(TaskFileMapping taskFileMapping)
 {
     base.AddObject("TaskFileMapping", taskFileMapping);
 }