コード例 #1
0
        private void GenerateContent()
        {
            try
            {
                ISQLGenerate generator = null;

                sb.AppendLine("--DO NOT MODIFY THIS FILE. IT IS ALWAYS OVERWRITTEN ON GENERATION.");
                sb.AppendLine("--Data Schema For Version " + _model.Version);
                ValidationHelper.AppendCopyrightInSQL(sb, _model);

                generator = new SQLSelectViewByAndTemplate(_model, _view);
                generator.GenerateContent(sb);

                generator = new SQLSelectViewByOrTemplate(_model, _view);
                generator.GenerateContent(sb);

                generator = new SQLSelectViewTemplate(_model, _view);
                generator.GenerateContent(sb);

                generator = new SQLPagedSelectViewTemplate(_model, _view);
                generator.GenerateContent(sb);
            }
            catch (Exception ex)
            {
                throw;
            }
        }
コード例 #2
0
		private void GenerateContent()
		{
			try
			{
				ISQLGenerate generator = null;

				sb.AppendLine("--DO NOT MODIFY THIS FILE. IT IS ALWAYS OVERWRITTEN ON GENERATION.");
				sb.AppendLine("--Data Schema For Version " + _model.Version);
				ValidationHelper.AppendCopyrightInSQL(sb, _model);

				generator = new SQLSelectViewByAndTemplate(_model, _view);
				generator.GenerateContent(sb);

				generator = new SQLSelectViewByOrTemplate(_model, _view);
				generator.GenerateContent(sb);

				generator = new SQLSelectViewTemplate(_model, _view);
				generator.GenerateContent(sb);

				generator = new SQLPagedSelectViewTemplate(_model, _view);
				generator.GenerateContent(sb);


			}
			catch (Exception ex)
			{
				throw;
			}
		}