Ejemplo n.º 1
0
 /// <summary>
 /// 更新引擎优先处理任务列表{引擎优先处理任务列表}对象(即:一条记录
 /// </summary>
 public int Update(TaskFirst taskFirst)
 {
     using (var dbContext = UnitOfWork.Get(Unity.ContainerName))
     {
         return(new TaskFirstRepository(dbContext).Update(taskFirst));
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 添加引擎优先处理任务列表{引擎优先处理任务列表}对象(即:一条记录
 /// </summary>
 public long Add(TaskFirst taskFirst)
 {
     using (var dbContext = UnitOfWork.Get(Unity.ContainerName))
     {
         return(new TaskFirstRepository(dbContext).Add(taskFirst));
     }
 }
Ejemplo n.º 3
0
        static void Main(string[] args)
        {
            try
            {
                var textParser = new TextParser();
                var text       = textParser.ParseTextFile(ConfigurationManager.AppSettings["pathToSourceText"]);
                var taskFirst  = new TaskFirst(text);

                ConsoleWorker.Start(taskFirst, textParser);
                new Concordance(text).WriteConcordanceToFile(ConfigurationManager.AppSettings["pathToConcordance"]);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
            finally
            {
                Console.WriteLine("Program has finished");
                Console.ReadKey();
            }
        }
Ejemplo n.º 4
0
 /// <summary>
 /// 更新引擎优先处理任务列表{引擎优先处理任务列表}对象(即:一条记录
 /// </summary>
 public int Update(TaskFirst taskFirst)
 {
     return(Update <TaskFirst>(taskFirst));
 }
Ejemplo n.º 5
0
 /// <summary>
 /// 添加引擎优先处理任务列表{引擎优先处理任务列表}对象(即:一条记录
 /// </summary>
 public long Add(TaskFirst taskFirst)
 {
     return(Add <TaskFirst>(taskFirst));
 }