Sqlite Bug

This commit is contained in:
sunkaixuan 2018-04-21 14:26:53 +08:00
parent ae623f6510
commit 78c0686d41
3 changed files with 4 additions and 0 deletions

View File

@ -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;

View File

@ -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...