예제 #1
0
 public static bool NeedsExecuteBlockStatement(this SqlDialect dialect)
 {
     return(dialect.HasFlag(SqlDialect.Firebird));
 }
예제 #2
0
 public static bool IsCaseSensitive(this SqlDialect dialect)
 {
     return(dialect.HasFlag(SqlDialect.Firebird));
 }
예제 #3
0
 public static bool CanUseRowNumber(this SqlDialect dialect)
 {
     return(dialect.HasFlag(SqlDialect.MsSql) && dialect >= SqlDialect.MsSql2005);
 }
예제 #4
0
 public static bool CanUseOffsetFetch(this SqlDialect dialect)
 {
     return((dialect.HasFlag(SqlDialect.MsSql) && dialect >= SqlDialect.MsSql2012) ||
            dialect.HasFlag(SqlDialect.Sqlite));
 }
예제 #5
0
 public static bool UseScopeIdentity(this SqlDialect dialect)
 {
     return(dialect.HasFlag(SqlDialect.MsSql) || dialect.HasFlag(SqlDialect.Sqlite));
 }
예제 #6
0
 public static bool MultipleResultsets(this SqlDialect dialect)
 {
     return(dialect.HasFlag(SqlDialect.MsSql));
 }
예제 #7
0
 public static string TimeFormat(this SqlDialect dialect)
 {
     return("\\'HH':'mm':'ss\\'");
 }
예제 #8
0
 public static bool UseReturningIdentity(this SqlDialect dialect)
 {
     return(dialect.HasFlag(SqlDialect.Firebird));
 }
예제 #9
0
 public static bool PrefixUnicodeStringsWithN(this SqlDialect dialect)
 {
     return(dialect.HasFlag(SqlDialect.MsSql));
 }
예제 #10
0
 public static bool CanUseSkipKeyword(this SqlDialect dialect)
 {
     return(dialect.HasFlag(SqlDialect.Firebird));
 }
예제 #11
0
 public static bool UseTakeAtEnd(this SqlDialect dialect)
 {
     return(dialect.HasFlag(SqlDialect.Sqlite));
 }
예제 #12
0
 public QueryWithParams()
 {
     dialect = SqlSettings.CurrentDialect;
 }
예제 #13
0
        /// <summary>
        /// Sets the dialect (SQL server type / version) for query.
        /// </summary>
        /// <remarks>TODO: SqlDialect system should be improved.</remarks>
        public SqlQuery Dialect(SqlDialect dialect)
        {
            this.dialect = dialect;

            return(this);
        }