public void WriteTo(ISqlBuffer buffer) { IProjectionAttribute[] attributes = this.Attributes.ToArray(); if (attributes.Length > 0) { attributes[0].WriteTo(buffer); foreach (IProjectionAttribute attr in attributes.Skip(1)) { buffer.Append(this.Options.Separator); attr.WriteTo(buffer); } } }
public void WriteTo(ISqlBuffer buffer) { bool wroteFirst = false; foreach (IProjectionAttribute attribute in this.Header) { if (!wroteFirst) { attribute.WriteTo(buffer); wroteFirst = true; } else { buffer.Append(this.Options.Separator); attribute.WriteTo(buffer); } } }
public void WriteTo(ISqlBuffer buffer) => this.Content.WriteTo(buffer);
public void WriteTo(ISqlBuffer buffer) { buffer.Append(this.Text); buffer.Append(this.Parameters); buffer.Append(this.Bindings); }