Example #1
0
 public MsSqlDbDriver(MsSqlVersion serverVersion)
     : base(DbServerType.MsSql, serverVersion == MsSqlVersion.V2008 ? MsSql08Features : MsSql12Features)
 {
     ServerVersion = serverVersion;
     base.DynamicSqlParameterPrefix = base.StoredProcParameterPrefix = "@";
     base.CommandCallFormat         = "EXEC {0} {1};";
     base.CommandCallOutParamFormat = "{0} OUTPUT";
     base.BatchBeginTransaction     = "BEGIN TRANSACTION;";
     base.BatchCommitTransaction    = "COMMIT TRANSACTION;";
     base.DDLSeparator = Environment.NewLine + "GO" + Environment.NewLine;
 }
Example #2
0
 public MsSqlDbDriver(MsSqlVersion serverVersion)
     : base(DbServerType.MsSql, serverVersion == MsSqlVersion.V2008 ? MsSql08Features : MsSql12Features)
 {
     ServerVersion = serverVersion;
       base.DynamicSqlParameterPrefix = base.StoredProcParameterPrefix = "@";
       base.CommandCallFormat = "EXEC {0} {1};";
       base.CommandCallOutParamFormat = "{0} OUTPUT";
       base.BatchBeginTransaction = "BEGIN TRANSACTION;";
       base.BatchCommitTransaction = "COMMIT TRANSACTION;";
       base.DDLSeparator = Environment.NewLine + "GO" + Environment.NewLine;
 }
Example #3
0
 public MsSqlDbSqlBuilder(DbModel dbModel, MsSqlVersion version) : base(dbModel)
 {
     _version = version;
 }
Example #4
0
 public MsSqlDbSqlBuilder(DbModel dbModel, MsSqlVersion version)
     : base(dbModel)
 {
     _version = version;
 }
Example #5
0
 public MsSqlLinqSqlProvider(DbModel dbModel, MsSqlVersion serverVersion)
     : base(dbModel)
 {
     ServerVersion = serverVersion;
 }
Example #6
0
 public MsSqlLinqSqlProvider(DbModel dbModel, MsSqlVersion serverVersion) : base(dbModel)
 {
     ServerVersion = serverVersion;
 }