/// <summary> /// 更新引擎优先处理任务列表{引擎优先处理任务列表}对象(即:一条记录 /// </summary> public int Update(TaskFirst taskFirst) { using (var dbContext = UnitOfWork.Get(Unity.ContainerName)) { return(new TaskFirstRepository(dbContext).Update(taskFirst)); } }
/// <summary> /// 添加引擎优先处理任务列表{引擎优先处理任务列表}对象(即:一条记录 /// </summary> public long Add(TaskFirst taskFirst) { using (var dbContext = UnitOfWork.Get(Unity.ContainerName)) { return(new TaskFirstRepository(dbContext).Add(taskFirst)); } }
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(); } }
/// <summary> /// 更新引擎优先处理任务列表{引擎优先处理任务列表}对象(即:一条记录 /// </summary> public int Update(TaskFirst taskFirst) { return(Update <TaskFirst>(taskFirst)); }
/// <summary> /// 添加引擎优先处理任务列表{引擎优先处理任务列表}对象(即:一条记录 /// </summary> public long Add(TaskFirst taskFirst) { return(Add <TaskFirst>(taskFirst)); }