public void Insert(SCToDoJob job)
		{
			job.NullCheck("job");

			string sql = ORMapping.GetInsertSql(job, TSqlBuilder.Instance);

			DbHelper.RunSql(sql, this.GetConnectionName());
		}
Ejemplo n.º 2
0
        /// <summary>
        /// 构造一个生成FullPath的作业
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public static SCToDoJob CreateGenerateFullPathsJob(SchemaObjectBase obj)
        {
            obj.NullCheck("obj");

            SCToDoJob job = new SCToDoJob();

            job.Type = "GenerateFullPaths";

            if (obj != null)
            {
                job.SourceID    = obj.ID;
                job.Description = string.Format("Generate full paths from '{0}'", obj.ID);
                job.Data        = obj.ToString();
            }

            return(job);
        }
Ejemplo n.º 3
0
		/// <summary>
		/// 构造一个生成FullPath的作业
		/// </summary>
		/// <param name="obj"></param>
		/// <returns></returns>
		public static SCToDoJob CreateGenerateFullPathsJob(SchemaObjectBase obj)
		{
			obj.NullCheck("obj");

			SCToDoJob job = new SCToDoJob();

			job.Type = "GenerateFullPaths";

			if (obj != null)
			{
				job.SourceID = obj.ID;
				job.Description = string.Format("Generate full paths from '{0}'", obj.ID);
				job.Data = obj.ToString();
			}

			return job;
		}