mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-24 07:22:57 +08:00
Sqlite Long Bug
This commit is contained in:
parent
14377771c6
commit
17417c6292
@ -264,6 +264,10 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return (T)Convert.ChangeType(dr.GetBoolean(i), type);
|
return (T)Convert.ChangeType(dr.GetBoolean(i), type);
|
||||||
}
|
}
|
||||||
|
else if (type == UtilConstants.LongType)
|
||||||
|
{
|
||||||
|
return (T)Convert.ChangeType(dr.GetInt64(i), type);
|
||||||
|
}
|
||||||
else if (type == UtilConstants.GuidType)
|
else if (type == UtilConstants.GuidType)
|
||||||
{
|
{
|
||||||
string guidString = dr.GetString(i);
|
string guidString = dr.GetString(i);
|
||||||
|
@ -8,6 +8,6 @@ namespace OrmTest
|
|||||||
{
|
{
|
||||||
public class Config
|
public class Config
|
||||||
{
|
{
|
||||||
public static string ConnectionString = @"DataSource=D:\MyGit\SqlSugar\Src\Asp.Net\SqliteTest\DataBase\SqlSugar4xTest.sqlite";
|
public static string ConnectionString = @"DataSource=F:\MyOpenSource\SqlSugar4.XNew\SqlSugar\Src\Asp.Net\SqliteTest\DataBase\SqlSugar4xTest.sqlite";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
@ -130,6 +130,8 @@ namespace OrmTest.Models
|
|||||||
/// Nullable:True
|
/// Nullable:True
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public double? Float2 {get;set;}
|
public double? Float2 {get;set;}
|
||||||
|
public long Long1 { get; set; }
|
||||||
|
public long? Long2 { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
0
Src/Asp.Net/SqliteTest/SqlSugar4xTest.sqlite
Normal file
0
Src/Asp.Net/SqliteTest/SqlSugar4xTest.sqlite
Normal file
@ -37,8 +37,10 @@ namespace OrmTest.UnitTest
|
|||||||
Money2 = 8,
|
Money2 = 8,
|
||||||
Varbinary1 = new byte[] { 4, 5 },
|
Varbinary1 = new byte[] { 4, 5 },
|
||||||
Varbinary2 = null,
|
Varbinary2 = null,
|
||||||
String = "string"
|
String = "string",
|
||||||
|
Long1=100
|
||||||
};
|
};
|
||||||
|
var x = db.Queryable<DataTestInfo2>().Select(it => it.PK).ToList();
|
||||||
var id = db.Insertable<DataTestInfo>(insertObject).ExecuteReturnIdentity();
|
var id = db.Insertable<DataTestInfo>(insertObject).ExecuteReturnIdentity();
|
||||||
var data = db.Queryable<DataTestInfo>().InSingle(id);
|
var data = db.Queryable<DataTestInfo>().InSingle(id);
|
||||||
if (
|
if (
|
||||||
@ -48,6 +50,7 @@ namespace OrmTest.UnitTest
|
|||||||
insertObject.Float2 != data.Float2 ||
|
insertObject.Float2 != data.Float2 ||
|
||||||
insertObject.Int2 != data.Int2 ||
|
insertObject.Int2 != data.Int2 ||
|
||||||
insertObject.Money1 != data.Money1 ||
|
insertObject.Money1 != data.Money1 ||
|
||||||
|
insertObject.Long1!=data.Long1||
|
||||||
insertObject.Guid2!=data.Guid2||
|
insertObject.Guid2!=data.Guid2||
|
||||||
string.Join(",", insertObject.Varbinary1) != string.Join(",", data.Varbinary1) ||
|
string.Join(",", insertObject.Varbinary1) != string.Join(",", data.Varbinary1) ||
|
||||||
insertObject.String != data.String)
|
insertObject.String != data.String)
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user