Browse Source

Update Oracle

pull/12/MERGE
sunkaixuan 7 years ago
parent
commit
0e18048320
  1. 7
      Src/Asp.Net/SqlSugar/Realization/Oracle/OracleProvider.cs
  2. 7
      Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleBuilder.cs
  3. 7
      Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleExpressionContext.cs

7
Src/Asp.Net/SqlSugar/Realization/Oracle/OracleProvider.cs

@ -11,6 +11,13 @@ namespace SqlSugar
public class OracleProvider : AdoProvider public class OracleProvider : AdoProvider
{ {
public OracleProvider() { } public OracleProvider() { }
public override string SqlParameterKeyWord
{
get
{
return ":";
}
}
public override IDbConnection Connection public override IDbConnection Connection
{ {
get get

7
Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleBuilder.cs

@ -9,6 +9,13 @@ namespace SqlSugar
{ {
public class OracleBuilder : SqlBuilderProvider public class OracleBuilder : SqlBuilderProvider
{ {
public override string SqlParameterKeyWord
{
get
{
return ":";
}
}
public override string SqlTranslationLeft { get { return "\""; } } public override string SqlTranslationLeft { get { return "\""; } }
public override string SqlTranslationRight { get { return "\""; } } public override string SqlTranslationRight { get { return "\""; } }
public override string GetTranslationTableName(string name) public override string GetTranslationTableName(string name)

7
Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleExpressionContext.cs

@ -16,6 +16,13 @@ namespace SqlSugar
{ {
base.DbMehtods = new MySqlMethod(); base.DbMehtods = new MySqlMethod();
} }
public override string SqlParameterKeyWord
{
get
{
return ":";
}
}
public override string SqlTranslationLeft { get { return "\""; } } public override string SqlTranslationLeft { get { return "\""; } }
public override string SqlTranslationRight { get { return "\""; } } public override string SqlTranslationRight { get { return "\""; } }
public override string GetTranslationTableName(string entityName, bool isMapping = true) public override string GetTranslationTableName(string entityName, bool isMapping = true)

Loading…
Cancel
Save