mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	adjust internal API
This commit is contained in:
		@@ -30,7 +30,7 @@ namespace FreeSql.Odbc.Default
 | 
			
		||||
            if (_table.Primarys.Length == 1)
 | 
			
		||||
            {
 | 
			
		||||
                var pk = _table.Primarys.First();
 | 
			
		||||
                caseWhen.Append(_commonUtils.QuoteReadColumn(pk, pk.CsType, pk.Attribute.MapType, _commonUtils.QuoteSqlName(pk.Attribute.Name)));
 | 
			
		||||
                caseWhen.Append(_commonUtils.RereadColumn(pk, _commonUtils.QuoteSqlName(pk.Attribute.Name)));
 | 
			
		||||
                return;
 | 
			
		||||
            }
 | 
			
		||||
            caseWhen.Append("(");
 | 
			
		||||
@@ -38,7 +38,7 @@ namespace FreeSql.Odbc.Default
 | 
			
		||||
            foreach (var pk in _table.Primarys)
 | 
			
		||||
            {
 | 
			
		||||
                if (pkidx > 0) caseWhen.Append(" + '+' + ");
 | 
			
		||||
                caseWhen.Append(_utils.Adapter.CastSql(_commonUtils.QuoteReadColumn(pk, pk.CsType, pk.Attribute.MapType, _commonUtils.QuoteSqlName(pk.Attribute.Name)), _utils.Adapter.MappingOdbcTypeVarChar));
 | 
			
		||||
                caseWhen.Append(_utils.Adapter.CastSql(_commonUtils.RereadColumn(pk, _commonUtils.QuoteSqlName(pk.Attribute.Name)), _utils.Adapter.MappingOdbcTypeVarChar));
 | 
			
		||||
                ++pkidx;
 | 
			
		||||
            }
 | 
			
		||||
            caseWhen.Append(")");
 | 
			
		||||
 
 | 
			
		||||
@@ -66,7 +66,7 @@ namespace FreeSql.Odbc.Default
 | 
			
		||||
        public override string Now => Adapter.LambdaDateTime_Now;
 | 
			
		||||
        public override string NowUtc => Adapter.LambdaDateTime_UtcNow;
 | 
			
		||||
 | 
			
		||||
        public override string QuoteWriteParamter(Type type, string paramterName) => paramterName;
 | 
			
		||||
        public override string QuoteWriteParamterAdapter(Type type, string paramterName) => paramterName;
 | 
			
		||||
        protected override string QuoteReadColumnAdapter(Type type, Type mapType, string columnName) => Adapter.FieldSql(type, columnName);
 | 
			
		||||
 | 
			
		||||
        public override string GetNoneParamaterSqlValue(List<DbParameter> specialParams, string specialParamFlag, ColumnInfo col, Type type, object value)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user