public override string GetColumnCheckScript(RDBMSCompiler compiler, RDBMSEntity column, Compiler.Outputs outputs) { var enumLine = string.Join(", ", Values.Select(v => compiler.EscapeString(v.Trim()))); return(compiler.TransformKeywordCase("check ({0} in ({1}))") .Args( compiler.GetQuotedIdentifierName(RDBMSEntityType.Column, column.TransformedName), enumLine )); }
public override string GetColumnCheckScript(RDBMSCompiler compiler, RDBMSEntity column, Compiler.Outputs outputs) { return compiler.TransformKeywordCase("check ({0} > 0 and {0} < 200)").Args( compiler.GetQuotedIdentifierName(RDBMSEntityType.Column, column.TransformedName) ); }
public override string GetColumnCheckScript(RDBMSCompiler compiler, RDBMSEntity column, Compiler.Outputs outputs) { return(compiler.TransformKeywordCase("check ({0} > 0 and {0} < 200)").Args(compiler.GetQuotedIdentifierName(RDBMSEntityType.Column, column.TransformedName))); }
public override string GetColumnCheckScript(RDBMSCompiler compiler, RDBMSEntity column, Compiler.Outputs outputs) { var enumLine = string.Join(", ", Values.Select(v => compiler.EscapeString( v.Trim() )) ); return compiler.TransformKeywordCase("check ({0} in ({1}))") .Args( compiler.GetQuotedIdentifierName(RDBMSEntityType.Column, column.TransformedName), enumLine ); }