Exemplo n.º 1
0
        public virtual Statement[] Render(AddEnumValueChange change)
        {
            EnumerationMemberInfo e = change.Value;
            string sql = string.Format("insert into {0} (Code_, Value_, Description_, DisplayOrder_, Deactivated_) values ({1}, {2}, {3}, {4}, {5})",
                                       GetQualifiedName(change.Table),
                                       FormatValue(e.Code),
                                       FormatValue(e.Value),
                                       FormatValue(e.Description),
                                       e.DisplayOrder,
                                       FormatValue(false.ToString()));

            return(new Statement[] { new Statement(sql) });
        }
Exemplo n.º 2
0
        public virtual Statement[] Render(AddEnumValueChange change)
		{
			EnumerationMemberInfo e = change.Value;
			string sql = string.Format("insert into {0} (Code_, Value_, Description_, DisplayOrder_, Deactivated_) values ({1}, {2}, {3}, {4}, {5})",
				GetQualifiedName(change.Table),
				FormatValue(e.Code),
				FormatValue(e.Value),
				FormatValue(e.Description),
				e.DisplayOrder,
				FormatValue(false.ToString()));
			return new Statement[] { new Statement(sql) };
		}