Пример #1
0
        public virtual Statement[] Render(AddIndexChange change)
        {
            IndexInfo     index = change.Index;
            StringBuilder buf   = new StringBuilder("create index ")
                                  .Append(_dialect.QualifyIndexName ? index.Name : NHibernate.Util.StringHelper.Unqualify(index.Name))
                                  .Append(" on ")
                                  .Append(GetQualifiedName(change.Table))
                                  .Append(" (");

            buf.Append(StringUtilities.Combine(index.Columns, ", "));
            buf.Append(")");

            return(new Statement[] { new Statement(buf.ToString()) });
        }
Пример #2
0
		public virtual Statement[] Render(AddIndexChange change)
		{
			IndexInfo index = change.Index;
			StringBuilder buf = new StringBuilder("create index ")
				.Append(_dialect.QualifyIndexName ? index.Name : NHibernate.Util.StringHelper.Unqualify(index.Name))
				.Append(" on ")
				.Append(GetQualifiedName(change.Table))
				.Append(" (");

			buf.Append(StringUtilities.Combine(index.Columns, ", "));
			buf.Append(")");

			return new Statement[] { new Statement(buf.ToString()) };
		}