protected virtual void WriteTableName(IEntityMapping mapping) { if (Dialect.SupportSchema && !string.IsNullOrEmpty(mapping.Schema)) { sb.Append(Dialect.Quote(mapping.Schema)); sb.Append("."); } this.AppendTableName(mapping.TableName); }
protected override string RenderSql(CreateSequenceOperation operation) { var sb = new StringBuilder(); sb.Append("CREATE SEQUENCE ") .Append(_dialect.Quote(operation.Name)); RenderAsComponent(sb, operation); RenderStartWith(sb, operation); RenderIncrement(sb, operation); RenderMinValue(sb, operation); RenderMaxValue(sb, operation); RenderCycle(sb, operation); RenderCache(sb, operation); return(sb.ToString()); }
protected override string RenderSql(CreateSchemaOperation operation) { return($"CREATE SCHEMA {_dialect.Quote(operation.Name)}"); }