mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-02-27 16:50:33 +08:00
Sqlite Bug
This commit is contained in:
@@ -178,6 +178,9 @@ namespace SqlSugar
|
|||||||
MethodInfo method = null;
|
MethodInfo method = null;
|
||||||
Type bindPropertyType = UtilMethods.GetUnderType(bindProperty, ref isNullableType);
|
Type bindPropertyType = UtilMethods.GetUnderType(bindProperty, ref isNullableType);
|
||||||
string dbTypeName = UtilMethods.GetParenthesesValue(DataRecord.GetDataTypeName(ordinal));
|
string dbTypeName = UtilMethods.GetParenthesesValue(DataRecord.GetDataTypeName(ordinal));
|
||||||
|
if (dbTypeName.IsNullOrEmpty()) {
|
||||||
|
dbTypeName = bindPropertyType.Name;
|
||||||
|
}
|
||||||
string propertyName = bindProperty.Name;
|
string propertyName = bindProperty.Name;
|
||||||
string validPropertyName = bind.GetPropertyTypeName(dbTypeName);
|
string validPropertyName = bind.GetPropertyTypeName(dbTypeName);
|
||||||
validPropertyName = validPropertyName == "byte[]" ? "byteArray" : validPropertyName;
|
validPropertyName = validPropertyName == "byte[]" ? "byteArray" : validPropertyName;
|
||||||
|
|||||||
Binary file not shown.
@@ -145,6 +145,7 @@ namespace OrmTest.Demo
|
|||||||
var t1 = db.Ado.SqlQuery<string>("select 'a'");
|
var t1 = db.Ado.SqlQuery<string>("select 'a'");
|
||||||
var t2 = db.Ado.GetInt("select 1");
|
var t2 = db.Ado.GetInt("select 1");
|
||||||
var t3 = db.Ado.GetDataTable("select 1 as id");
|
var t3 = db.Ado.GetDataTable("select 1 as id");
|
||||||
|
var t4 = db.Ado.SqlQuery<Student>("select 1 as id,'aa' as name");
|
||||||
db.Ado.CommitTran();
|
db.Ado.CommitTran();
|
||||||
//more
|
//more
|
||||||
//db.Ado.GetXXX...
|
//db.Ado.GetXXX...
|
||||||
|
|||||||
Reference in New Issue
Block a user