mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Sqlite Bug
This commit is contained in:
parent
ae623f6510
commit
78c0686d41
@ -178,6 +178,9 @@ namespace SqlSugar
|
||||
MethodInfo method = null;
|
||||
Type bindPropertyType = UtilMethods.GetUnderType(bindProperty, ref isNullableType);
|
||||
string dbTypeName = UtilMethods.GetParenthesesValue(DataRecord.GetDataTypeName(ordinal));
|
||||
if (dbTypeName.IsNullOrEmpty()) {
|
||||
dbTypeName = bindPropertyType.Name;
|
||||
}
|
||||
string propertyName = bindProperty.Name;
|
||||
string validPropertyName = bind.GetPropertyTypeName(dbTypeName);
|
||||
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 t2 = db.Ado.GetInt("select 1");
|
||||
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();
|
||||
//more
|
||||
//db.Ado.GetXXX...
|
||||
|
Loading…
Reference in New Issue
Block a user