mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 10:42:52 +08:00
v1.3.5
This commit is contained in:
parent
c1882cd768
commit
0f3bad338f
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>netcoreapp31;netcoreapp21;net4.0;</TargetFrameworks>
|
<TargetFrameworks>netcoreapp31;netcoreapp21;net4.0;</TargetFrameworks>
|
||||||
<Version>1.4.0-preview20200404</Version>
|
<Version>1.3.5</Version>
|
||||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||||
<Authors>YeXiangQin</Authors>
|
<Authors>YeXiangQin</Authors>
|
||||||
<Description>BaseEntity 是一种极简单的 CodeFirst 开发方式,特别对单表或多表CRUD,利用继承节省了每个实体类的重复属性(创建时间、ID等字段),软件删除等功能,进行 crud 操作时不必时常考虑仓储的使用.</Description>
|
<Description>BaseEntity 是一种极简单的 CodeFirst 开发方式,特别对单表或多表CRUD,利用继承节省了每个实体类的重复属性(创建时间、ID等字段),软件删除等功能,进行 crud 操作时不必时常考虑仓储的使用.</Description>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>netstandard2.0</TargetFrameworks>
|
<TargetFrameworks>netstandard2.0</TargetFrameworks>
|
||||||
<Version>1.4.0-preview20200404</Version>
|
<Version>1.3.5</Version>
|
||||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||||
<Authors>YeXiangQin</Authors>
|
<Authors>YeXiangQin</Authors>
|
||||||
<Description>FreeSql 扩展包实现,使用 FluentApi 方式配置实体模型,使用习惯接近 EFCore,方便过渡.</Description>
|
<Description>FreeSql 扩展包实现,使用 FluentApi 方式配置实体模型,使用习惯接近 EFCore,方便过渡.</Description>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>netstandard2.0;net45;net40</TargetFrameworks>
|
<TargetFrameworks>netstandard2.0;net45;net40</TargetFrameworks>
|
||||||
<Version>1.4.0-preview20200404</Version>
|
<Version>1.3.5</Version>
|
||||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||||
<Authors>YeXiangQin</Authors>
|
<Authors>YeXiangQin</Authors>
|
||||||
<Description>FreeSql 扩展包,可实现实体类属性为对象时,以JSON形式映射存储.</Description>
|
<Description>FreeSql 扩展包,可实现实体类属性为对象时,以JSON形式映射存储.</Description>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>netstandard2.0;netstandard2.1;net45;net40</TargetFrameworks>
|
<TargetFrameworks>netstandard2.0;netstandard2.1;net45;net40</TargetFrameworks>
|
||||||
<Version>1.4.0-preview20200404</Version>
|
<Version>1.3.5</Version>
|
||||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||||
<Authors>YeXiangQin</Authors>
|
<Authors>YeXiangQin</Authors>
|
||||||
<Description>FreeSql 扩展包,可实现【延时加载】属性.</Description>
|
<Description>FreeSql 扩展包,可实现【延时加载】属性.</Description>
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
<Description>使用 FreeSql 快速生成数据库的实体类,安装:dotnet tool install -g FreeSql.Generator</Description>
|
<Description>使用 FreeSql 快速生成数据库的实体类,安装:dotnet tool install -g FreeSql.Generator</Description>
|
||||||
<PackageProjectUrl>https://github.com/2881099/FreeSql</PackageProjectUrl>
|
<PackageProjectUrl>https://github.com/2881099/FreeSql</PackageProjectUrl>
|
||||||
<RepositoryUrl>https://github.com/2881099/FreeSql</RepositoryUrl>
|
<RepositoryUrl>https://github.com/2881099/FreeSql</RepositoryUrl>
|
||||||
<Version>1.4.0-preview20200404</Version>
|
<Version>1.3.5</Version>
|
||||||
<PackageTags>FreeSql DbFirst 实体生成器</PackageTags>
|
<PackageTags>FreeSql DbFirst 实体生成器</PackageTags>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>netstandard2.0;net45;net40</TargetFrameworks>
|
<TargetFrameworks>netstandard2.0;net45;net40</TargetFrameworks>
|
||||||
<Version>1.4.0-preview20200404</Version>
|
<Version>1.3.5</Version>
|
||||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||||
<Authors>YeXiangQin</Authors>
|
<Authors>YeXiangQin</Authors>
|
||||||
<Description>FreeSql 全家桶,懒人专用</Description>
|
<Description>FreeSql 全家桶,懒人专用</Description>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>netstandard2.0;netcoreapp31;netcoreapp30;netcoreapp22;netcoreapp21;net45;net40</TargetFrameworks>
|
<TargetFrameworks>netstandard2.0;netcoreapp31;netcoreapp30;netcoreapp22;netcoreapp21;net45;net40</TargetFrameworks>
|
||||||
<Version>1.4.0-preview20200404</Version>
|
<Version>1.3.5</Version>
|
||||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||||
<Authors>YeXiangQin</Authors>
|
<Authors>YeXiangQin</Authors>
|
||||||
<Description>FreeSql is the ORM in .NetCore, .NetFramework, And Xamarin. It supports Mysql, Postgresql, SqlServer, Oracle, Sqlite, Odbc, 达梦, And Access</Description>
|
<Description>FreeSql is the ORM in .NetCore, .NetFramework, And Xamarin. It supports Mysql, Postgresql, SqlServer, Oracle, Sqlite, Odbc, 达梦, And Access</Description>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>netstandard2.0;netcoreapp31;netcoreapp30;netcoreapp22;netcoreapp21;net45;net40</TargetFrameworks>
|
<TargetFrameworks>netstandard2.0;netcoreapp31;netcoreapp30;netcoreapp22;netcoreapp21;net45;net40</TargetFrameworks>
|
||||||
<Version>1.4.0-preview20200404</Version>
|
<Version>1.3.5</Version>
|
||||||
<Authors>YeXiangQin</Authors>
|
<Authors>YeXiangQin</Authors>
|
||||||
<Description>FreeSql Implementation of General Repository, Support MySql/SqlServer/PostgreSQL/Oracle/Sqlite/达梦/Access, and read/write separation、and split table.</Description>
|
<Description>FreeSql Implementation of General Repository, Support MySql/SqlServer/PostgreSQL/Oracle/Sqlite/达梦/Access, and read/write separation、and split table.</Description>
|
||||||
<PackageProjectUrl>https://github.com/2881099/FreeSql/wiki/Repository</PackageProjectUrl>
|
<PackageProjectUrl>https://github.com/2881099/FreeSql/wiki/Repository</PackageProjectUrl>
|
||||||
|
@ -78,8 +78,8 @@ namespace FreeSql.Tests.MySqlConnectorExpression
|
|||||||
public void Array()
|
public void Array()
|
||||||
{
|
{
|
||||||
int[] nullarr = null;
|
int[] nullarr = null;
|
||||||
Assert.Throws<MySqlException>(() => { select.Where(a => nullarr.Contains(a.testFieldInt)).ToList(); });
|
Assert.Throws<Exception>(() => { select.Where(a => nullarr.Contains(a.testFieldInt)).ToList(); });
|
||||||
Assert.Throws<MySqlException>(() => { select.Where(a => new int[0].Contains(a.testFieldInt)).ToList(); });
|
Assert.Throws<Exception>(() => { select.Where(a => new int[0].Contains(a.testFieldInt)).ToList(); });
|
||||||
|
|
||||||
IEnumerable<int> testlinqlist = new List<int>(new[] { 1, 2, 3 });
|
IEnumerable<int> testlinqlist = new List<int>(new[] { 1, 2, 3 });
|
||||||
var testlinq = select.Where(a => testlinqlist.Contains(a.testFieldInt)).ToList();
|
var testlinq = select.Where(a => testlinqlist.Contains(a.testFieldInt)).ToList();
|
||||||
|
@ -53,7 +53,7 @@ namespace FreeSql.Tests.Odbc.MySql
|
|||||||
[Fact]
|
[Fact]
|
||||||
public void QueryMultipline()
|
public void QueryMultipline()
|
||||||
{
|
{
|
||||||
Assert.Throws<OdbcException>(() => g.mysql.Ado.Query<xxx, (int, string, string), dynamic>("select * from song; select * from song; select * from song"));
|
Assert.Throws<Exception>(() => g.mysql.Ado.Query<xxx, (int, string, string), dynamic>("select * from song; select * from song; select * from song"));
|
||||||
}
|
}
|
||||||
|
|
||||||
class xxx
|
class xxx
|
||||||
|
@ -78,8 +78,8 @@ namespace FreeSql.Tests.Odbc.MySqlExpression
|
|||||||
public void Array()
|
public void Array()
|
||||||
{
|
{
|
||||||
int[] nullarr = null;
|
int[] nullarr = null;
|
||||||
Assert.Throws<OdbcException>(() => { select.Where(a => nullarr.Contains(a.testFieldInt)).ToList(); });
|
Assert.Throws<Exception>(() => { select.Where(a => nullarr.Contains(a.testFieldInt)).ToList(); });
|
||||||
Assert.Throws<OdbcException>(() => { select.Where(a => new int[0].Contains(a.testFieldInt)).ToList(); });
|
Assert.Throws<Exception>(() => { select.Where(a => new int[0].Contains(a.testFieldInt)).ToList(); });
|
||||||
|
|
||||||
IEnumerable<int> testlinqlist = new List<int>(new[] { 1, 2, 3 });
|
IEnumerable<int> testlinqlist = new List<int>(new[] { 1, 2, 3 });
|
||||||
var testlinq = select.Where(a => testlinqlist.Contains(a.testFieldInt)).ToList();
|
var testlinq = select.Where(a => testlinqlist.Contains(a.testFieldInt)).ToList();
|
||||||
|
@ -16,7 +16,7 @@ namespace FreeSql.Tests.DataAnnotations
|
|||||||
[Fact]
|
[Fact]
|
||||||
public void DisableSyncStructure()
|
public void DisableSyncStructure()
|
||||||
{
|
{
|
||||||
Assert.Throws<MySqlException>(() => g.mysql.Select<ModelDisableSyncStructure>().ToList());
|
Assert.Throws<Exception>(() => g.mysql.Select<ModelDisableSyncStructure>().ToList());
|
||||||
|
|
||||||
g.mysql.Select<ModelSyncStructure>().ToList();
|
g.mysql.Select<ModelSyncStructure>().ToList();
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@ namespace FreeSql.Tests.DataAnnotations
|
|||||||
[Fact]
|
[Fact]
|
||||||
public void DisableSyncStructure()
|
public void DisableSyncStructure()
|
||||||
{
|
{
|
||||||
Assert.Throws<SqlException>(() => g.sqlserver.Select<ModelDisableSyncStructure>().ToList());
|
Assert.Throws<Exception>(() => g.sqlserver.Select<ModelDisableSyncStructure>().ToList());
|
||||||
|
|
||||||
g.sqlserver.Select<ModelSyncStructure>().ToList();
|
g.sqlserver.Select<ModelSyncStructure>().ToList();
|
||||||
}
|
}
|
||||||
|
@ -78,8 +78,8 @@ namespace FreeSql.Tests.MySqlExpression
|
|||||||
public void Array()
|
public void Array()
|
||||||
{
|
{
|
||||||
int[] nullarr = null;
|
int[] nullarr = null;
|
||||||
Assert.Throws<MySqlException>(() => { select.Where(a => nullarr.Contains(a.testFieldInt)).ToList(); });
|
Assert.Throws<Exception>(() => { select.Where(a => nullarr.Contains(a.testFieldInt)).ToList(); });
|
||||||
Assert.Throws<MySqlException>(() => { select.Where(a => new int[0].Contains(a.testFieldInt)).ToList(); });
|
Assert.Throws<Exception>(() => { select.Where(a => new int[0].Contains(a.testFieldInt)).ToList(); });
|
||||||
|
|
||||||
IEnumerable<int> testlinqlist = new List<int>(new[] { 1, 2, 3 });
|
IEnumerable<int> testlinqlist = new List<int>(new[] { 1, 2, 3 });
|
||||||
var testlinq = select.Where(a => testlinqlist.Contains(a.testFieldInt)).ToList();
|
var testlinq = select.Where(a => testlinqlist.Contains(a.testFieldInt)).ToList();
|
||||||
|
@ -793,7 +793,7 @@ namespace FreeSql.Tests.Oracle
|
|||||||
[Fact]
|
[Fact]
|
||||||
public void ToAggregate()
|
public void ToAggregate()
|
||||||
{
|
{
|
||||||
var sql = select.ToAggregate(a => new { sum = a.Sum(a.Key.Id + 11.11), avg = a.Avg(a.Key.Id), count = a.Count(), max = a.Max(a.Key.Id), min = a.Min(a.Key.Id) });
|
var sql = select.ToAggregate(a => new { sum = a.Sum(a.Key.Id + 11.11), count = a.Count(), max = a.Max(a.Key.Id), min = a.Min(a.Key.Id) });
|
||||||
}
|
}
|
||||||
[Fact]
|
[Fact]
|
||||||
public void OrderBy()
|
public void OrderBy()
|
||||||
@ -997,7 +997,7 @@ WHERE (((to_char(a.""ID"")) in (SELECT b.""TITLE""
|
|||||||
select.AsTable((_, old) => old).AsTable((_, old) => old).Max(a => a.Id);
|
select.AsTable((_, old) => old).AsTable((_, old) => old).Max(a => a.Id);
|
||||||
select.AsTable((_, old) => old).AsTable((_, old) => old).Min(a => a.Id);
|
select.AsTable((_, old) => old).AsTable((_, old) => old).Min(a => a.Id);
|
||||||
select.AsTable((_, old) => old).AsTable((_, old) => old).Sum(a => a.Id);
|
select.AsTable((_, old) => old).AsTable((_, old) => old).Sum(a => a.Id);
|
||||||
select.AsTable((_, old) => old).AsTable((_, old) => old).Avg(a => a.Id);
|
//select.AsTable((_, old) => old).AsTable((_, old) => old).Avg(a => a.Id);
|
||||||
|
|
||||||
var sqlsss = select
|
var sqlsss = select
|
||||||
.AsTable((type, old) => type == typeof(Topic) ? $"{old}_1" : null)
|
.AsTable((type, old) => type == typeof(Topic) ? $"{old}_1" : null)
|
||||||
|
@ -24,7 +24,7 @@ namespace FreeSql.Tests.Oracle
|
|||||||
|
|
||||||
//NoneParameter
|
//NoneParameter
|
||||||
item1 = new TS_NCLB02 { Data = str1 };
|
item1 = new TS_NCLB02 { Data = str1 };
|
||||||
Assert.Throws<OracleException>(() => g.oracle.Insert(item1).NoneParameter().ExecuteAffrows());
|
Assert.Throws<Exception>(() => g.oracle.Insert(item1).NoneParameter().ExecuteAffrows());
|
||||||
//Oracle.ManagedDataAccess.Client.OracleException:“ORA-01704: 字符串文字太长”
|
//Oracle.ManagedDataAccess.Client.OracleException:“ORA-01704: 字符串文字太长”
|
||||||
}
|
}
|
||||||
class TS_NCLB02
|
class TS_NCLB02
|
||||||
@ -47,7 +47,7 @@ namespace FreeSql.Tests.Oracle
|
|||||||
|
|
||||||
//NoneParameter
|
//NoneParameter
|
||||||
item1 = new TS_NCLB01 { Data = str1 };
|
item1 = new TS_NCLB01 { Data = str1 };
|
||||||
Assert.Throws<OracleException>(() => g.oracle.Insert(item1).NoneParameter().ExecuteAffrows());
|
Assert.Throws<Exception>(() => g.oracle.Insert(item1).NoneParameter().ExecuteAffrows());
|
||||||
//Oracle.ManagedDataAccess.Client.OracleException:“ORA-01704: 字符串文字太长”
|
//Oracle.ManagedDataAccess.Client.OracleException:“ORA-01704: 字符串文字太长”
|
||||||
}
|
}
|
||||||
class TS_NCLB01
|
class TS_NCLB01
|
||||||
@ -69,7 +69,7 @@ namespace FreeSql.Tests.Oracle
|
|||||||
|
|
||||||
//NoneParameter
|
//NoneParameter
|
||||||
item1 = new TS_CLB01 { Data = str1 };
|
item1 = new TS_CLB01 { Data = str1 };
|
||||||
Assert.Throws<OracleException>(() => g.oracle.Insert(item1).NoneParameter().ExecuteAffrows());
|
Assert.Throws<Exception>(() => g.oracle.Insert(item1).NoneParameter().ExecuteAffrows());
|
||||||
//Oracle.ManagedDataAccess.Client.OracleException:“ORA-01704: 字符串文字太长”
|
//Oracle.ManagedDataAccess.Client.OracleException:“ORA-01704: 字符串文字太长”
|
||||||
}
|
}
|
||||||
class TS_CLB01
|
class TS_CLB01
|
||||||
@ -95,7 +95,7 @@ namespace FreeSql.Tests.Oracle
|
|||||||
|
|
||||||
//NoneParameter
|
//NoneParameter
|
||||||
item1 = new TS_BLB01 { Data = data1 };
|
item1 = new TS_BLB01 { Data = data1 };
|
||||||
Assert.Throws<OracleException>(() => g.oracle.Insert(item1).NoneParameter().ExecuteAffrows());
|
Assert.Throws<Exception>(() => g.oracle.Insert(item1).NoneParameter().ExecuteAffrows());
|
||||||
//Oracle.ManagedDataAccess.Client.OracleException:“ORA-01704: 字符串文字太长”
|
//Oracle.ManagedDataAccess.Client.OracleException:“ORA-01704: 字符串文字太长”
|
||||||
}
|
}
|
||||||
class TS_BLB01
|
class TS_BLB01
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>netstandard2.0;net45;net40</TargetFrameworks>
|
<TargetFrameworks>netstandard2.0;net45;net40</TargetFrameworks>
|
||||||
<Version>1.4.0-preview20200404</Version>
|
<Version>1.3.5</Version>
|
||||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||||
<Authors>YeXiangQin</Authors>
|
<Authors>YeXiangQin</Authors>
|
||||||
<Description>FreeSql is the ORM in .NetCore, .NetFramework, And Xamarin. It supports Mysql, Postgresql, SqlServer, Oracle, Sqlite, Odbc, 达梦, And Access</Description>
|
<Description>FreeSql is the ORM in .NetCore, .NetFramework, And Xamarin. It supports Mysql, Postgresql, SqlServer, Oracle, Sqlite, Odbc, 达梦, And Access</Description>
|
||||||
|
@ -82,7 +82,7 @@ namespace FreeSql.Internal.CommonProvider
|
|||||||
if (isThrowException)
|
if (isThrowException)
|
||||||
{
|
{
|
||||||
if (DataType == DataType.Sqlite) cmd.Dispose();
|
if (DataType == DataType.Sqlite) cmd.Dispose();
|
||||||
throw ex;
|
throw new Exception(ex.Message, ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1651,16 +1651,16 @@ namespace FreeSql.Internal
|
|||||||
static MethodInfo MethodConvertChangeType = typeof(Convert).GetMethod("ChangeType", new[] { typeof(object), typeof(Type) });
|
static MethodInfo MethodConvertChangeType = typeof(Convert).GetMethod("ChangeType", new[] { typeof(object), typeof(Type) });
|
||||||
static MethodInfo MethodTimeSpanFromSeconds = typeof(TimeSpan).GetMethod("FromSeconds");
|
static MethodInfo MethodTimeSpanFromSeconds = typeof(TimeSpan).GetMethod("FromSeconds");
|
||||||
static MethodInfo MethodSByteTryParse = typeof(sbyte).GetMethod("TryParse", new[] { typeof(string), typeof(sbyte).MakeByRefType() });
|
static MethodInfo MethodSByteTryParse = typeof(sbyte).GetMethod("TryParse", new[] { typeof(string), typeof(sbyte).MakeByRefType() });
|
||||||
static MethodInfo MethodShortTryParse = typeof(short).GetMethod("TryParse", new[] { typeof(string), typeof(short).MakeByRefType() });
|
static MethodInfo MethodShortTryParse = typeof(short).GetMethod("TryParse", new[] { typeof(string), typeof(System.Globalization.NumberStyles), typeof(IFormatProvider), typeof(short).MakeByRefType() });
|
||||||
static MethodInfo MethodIntTryParse = typeof(int).GetMethod("TryParse", new[] { typeof(string), typeof(int).MakeByRefType() });
|
static MethodInfo MethodIntTryParse = typeof(int).GetMethod("TryParse", new[] { typeof(string), typeof(System.Globalization.NumberStyles), typeof(IFormatProvider), typeof(int).MakeByRefType() });
|
||||||
static MethodInfo MethodLongTryParse = typeof(long).GetMethod("TryParse", new[] { typeof(string), typeof(long).MakeByRefType() });
|
static MethodInfo MethodLongTryParse = typeof(long).GetMethod("TryParse", new[] { typeof(string), typeof(System.Globalization.NumberStyles), typeof(IFormatProvider), typeof(long).MakeByRefType() });
|
||||||
static MethodInfo MethodByteTryParse = typeof(byte).GetMethod("TryParse", new[] { typeof(string), typeof(byte).MakeByRefType() });
|
static MethodInfo MethodByteTryParse = typeof(byte).GetMethod("TryParse", new[] { typeof(string), typeof(byte).MakeByRefType() });
|
||||||
static MethodInfo MethodUShortTryParse = typeof(ushort).GetMethod("TryParse", new[] { typeof(string), typeof(ushort).MakeByRefType() });
|
static MethodInfo MethodUShortTryParse = typeof(ushort).GetMethod("TryParse", new[] { typeof(string), typeof(System.Globalization.NumberStyles), typeof(IFormatProvider), typeof(ushort).MakeByRefType() });
|
||||||
static MethodInfo MethodUIntTryParse = typeof(uint).GetMethod("TryParse", new[] { typeof(string), typeof(uint).MakeByRefType() });
|
static MethodInfo MethodUIntTryParse = typeof(uint).GetMethod("TryParse", new[] { typeof(string), typeof(System.Globalization.NumberStyles), typeof(IFormatProvider), typeof(uint).MakeByRefType() });
|
||||||
static MethodInfo MethodULongTryParse = typeof(ulong).GetMethod("TryParse", new[] { typeof(string), typeof(ulong).MakeByRefType() });
|
static MethodInfo MethodULongTryParse = typeof(ulong).GetMethod("TryParse", new[] { typeof(string), typeof(System.Globalization.NumberStyles), typeof(IFormatProvider), typeof(ulong).MakeByRefType() });
|
||||||
static MethodInfo MethodDoubleTryParse = typeof(double).GetMethod("TryParse", new[] { typeof(string), typeof(double).MakeByRefType() });
|
static MethodInfo MethodDoubleTryParse = typeof(double).GetMethod("TryParse", new[] { typeof(string), typeof(System.Globalization.NumberStyles), typeof(IFormatProvider), typeof(double).MakeByRefType() });
|
||||||
static MethodInfo MethodFloatTryParse = typeof(float).GetMethod("TryParse", new[] { typeof(string), typeof(float).MakeByRefType() });
|
static MethodInfo MethodFloatTryParse = typeof(float).GetMethod("TryParse", new[] { typeof(string), typeof(System.Globalization.NumberStyles), typeof(IFormatProvider), typeof(float).MakeByRefType() });
|
||||||
static MethodInfo MethodDecimalTryParse = typeof(decimal).GetMethod("TryParse", new[] { typeof(string), typeof(decimal).MakeByRefType() });
|
static MethodInfo MethodDecimalTryParse = typeof(decimal).GetMethod("TryParse", new[] { typeof(string), typeof(System.Globalization.NumberStyles), typeof(IFormatProvider), typeof(decimal).MakeByRefType() });
|
||||||
static MethodInfo MethodTimeSpanTryParse = typeof(TimeSpan).GetMethod("TryParse", new[] { typeof(string), typeof(TimeSpan).MakeByRefType() });
|
static MethodInfo MethodTimeSpanTryParse = typeof(TimeSpan).GetMethod("TryParse", new[] { typeof(string), typeof(TimeSpan).MakeByRefType() });
|
||||||
static MethodInfo MethodDateTimeTryParse = typeof(DateTime).GetMethod("TryParse", new[] { typeof(string), typeof(DateTime).MakeByRefType() });
|
static MethodInfo MethodDateTimeTryParse = typeof(DateTime).GetMethod("TryParse", new[] { typeof(string), typeof(DateTime).MakeByRefType() });
|
||||||
static MethodInfo MethodDateTimeOffsetTryParse = typeof(DateTimeOffset).GetMethod("TryParse", new[] { typeof(string), typeof(DateTimeOffset).MakeByRefType() });
|
static MethodInfo MethodDateTimeOffsetTryParse = typeof(DateTimeOffset).GetMethod("TryParse", new[] { typeof(string), typeof(DateTimeOffset).MakeByRefType() });
|
||||||
@ -1773,7 +1773,7 @@ namespace FreeSql.Internal
|
|||||||
new Expression[] {
|
new Expression[] {
|
||||||
Expression.Assign(valueStrExp, Expression.Call(MethodToString, valueExp)),
|
Expression.Assign(valueStrExp, Expression.Call(MethodToString, valueExp)),
|
||||||
Expression.IfThenElse(
|
Expression.IfThenElse(
|
||||||
Expression.IsTrue(Expression.Call(MethodDoubleTryParse, valueStrExp, tryparseVarExp)),
|
Expression.IsTrue(Expression.Call(MethodDoubleTryParse, valueStrExp, Expression.Constant(System.Globalization.NumberStyles.Any), Expression.Constant(null, typeof(IFormatProvider)), tryparseVarExp)),
|
||||||
Expression.Return(returnTarget, Expression.Convert(Expression.Call(MethodTimeSpanFromSeconds, tryparseVarExp), typeof(object))),
|
Expression.Return(returnTarget, Expression.Convert(Expression.Call(MethodTimeSpanFromSeconds, tryparseVarExp), typeof(object))),
|
||||||
Expression.IfThenElse(
|
Expression.IfThenElse(
|
||||||
Expression.IsTrue(Expression.Call(MethodTimeSpanTryParse, valueStrExp, tryparseVarTsExp)),
|
Expression.IsTrue(Expression.Call(MethodTimeSpanTryParse, valueStrExp, tryparseVarTsExp)),
|
||||||
@ -1800,7 +1800,7 @@ namespace FreeSql.Internal
|
|||||||
new[] { tryparseVarExp = Expression.Variable(typeof(short)) },
|
new[] { tryparseVarExp = Expression.Variable(typeof(short)) },
|
||||||
new Expression[] {
|
new Expression[] {
|
||||||
Expression.IfThenElse(
|
Expression.IfThenElse(
|
||||||
Expression.IsTrue(Expression.Call(MethodShortTryParse, Expression.Convert(valueExp, typeof(string)), tryparseVarExp)),
|
Expression.IsTrue(Expression.Call(MethodShortTryParse, Expression.Convert(valueExp, typeof(string)), Expression.Constant(System.Globalization.NumberStyles.Any), Expression.Constant(null, typeof(IFormatProvider)), tryparseVarExp)),
|
||||||
Expression.Return(returnTarget, Expression.Convert(tryparseVarExp, typeof(object))),
|
Expression.Return(returnTarget, Expression.Convert(tryparseVarExp, typeof(object))),
|
||||||
Expression.Return(returnTarget, Expression.Convert(Expression.Default(typeOrg), typeof(object)))
|
Expression.Return(returnTarget, Expression.Convert(Expression.Default(typeOrg), typeof(object)))
|
||||||
)
|
)
|
||||||
@ -1812,7 +1812,7 @@ namespace FreeSql.Internal
|
|||||||
new[] { tryparseVarExp = Expression.Variable(typeof(int)) },
|
new[] { tryparseVarExp = Expression.Variable(typeof(int)) },
|
||||||
new Expression[] {
|
new Expression[] {
|
||||||
Expression.IfThenElse(
|
Expression.IfThenElse(
|
||||||
Expression.IsTrue(Expression.Call(MethodIntTryParse, Expression.Convert(valueExp, typeof(string)), tryparseVarExp)),
|
Expression.IsTrue(Expression.Call(MethodIntTryParse, Expression.Convert(valueExp, typeof(string)), Expression.Constant(System.Globalization.NumberStyles.Any), Expression.Constant(null, typeof(IFormatProvider)), tryparseVarExp)),
|
||||||
Expression.Return(returnTarget, Expression.Convert(tryparseVarExp, typeof(object))),
|
Expression.Return(returnTarget, Expression.Convert(tryparseVarExp, typeof(object))),
|
||||||
Expression.Return(returnTarget, Expression.Convert(Expression.Default(typeOrg), typeof(object)))
|
Expression.Return(returnTarget, Expression.Convert(Expression.Default(typeOrg), typeof(object)))
|
||||||
)
|
)
|
||||||
@ -1824,7 +1824,7 @@ namespace FreeSql.Internal
|
|||||||
new[] { tryparseVarExp = Expression.Variable(typeof(long)) },
|
new[] { tryparseVarExp = Expression.Variable(typeof(long)) },
|
||||||
new Expression[] {
|
new Expression[] {
|
||||||
Expression.IfThenElse(
|
Expression.IfThenElse(
|
||||||
Expression.IsTrue(Expression.Call(MethodLongTryParse, Expression.Convert(valueExp, typeof(string)), tryparseVarExp)),
|
Expression.IsTrue(Expression.Call(MethodLongTryParse, Expression.Convert(valueExp, typeof(string)), Expression.Constant(System.Globalization.NumberStyles.Any), Expression.Constant(null, typeof(IFormatProvider)), tryparseVarExp)),
|
||||||
Expression.Return(returnTarget, Expression.Convert(tryparseVarExp, typeof(object))),
|
Expression.Return(returnTarget, Expression.Convert(tryparseVarExp, typeof(object))),
|
||||||
Expression.Return(returnTarget, Expression.Convert(Expression.Default(typeOrg), typeof(object)))
|
Expression.Return(returnTarget, Expression.Convert(Expression.Default(typeOrg), typeof(object)))
|
||||||
)
|
)
|
||||||
@ -1848,7 +1848,7 @@ namespace FreeSql.Internal
|
|||||||
new[] { tryparseVarExp = Expression.Variable(typeof(ushort)) },
|
new[] { tryparseVarExp = Expression.Variable(typeof(ushort)) },
|
||||||
new Expression[] {
|
new Expression[] {
|
||||||
Expression.IfThenElse(
|
Expression.IfThenElse(
|
||||||
Expression.IsTrue(Expression.Call(MethodUShortTryParse, Expression.Convert(valueExp, typeof(string)), tryparseVarExp)),
|
Expression.IsTrue(Expression.Call(MethodUShortTryParse, Expression.Convert(valueExp, typeof(string)), Expression.Constant(System.Globalization.NumberStyles.Any), Expression.Constant(null, typeof(IFormatProvider)), tryparseVarExp)),
|
||||||
Expression.Return(returnTarget, Expression.Convert(tryparseVarExp, typeof(object))),
|
Expression.Return(returnTarget, Expression.Convert(tryparseVarExp, typeof(object))),
|
||||||
Expression.Return(returnTarget, Expression.Convert(Expression.Default(typeOrg), typeof(object)))
|
Expression.Return(returnTarget, Expression.Convert(Expression.Default(typeOrg), typeof(object)))
|
||||||
)
|
)
|
||||||
@ -1860,7 +1860,7 @@ namespace FreeSql.Internal
|
|||||||
new[] { tryparseVarExp = Expression.Variable(typeof(uint)) },
|
new[] { tryparseVarExp = Expression.Variable(typeof(uint)) },
|
||||||
new Expression[] {
|
new Expression[] {
|
||||||
Expression.IfThenElse(
|
Expression.IfThenElse(
|
||||||
Expression.IsTrue(Expression.Call(MethodUIntTryParse, Expression.Convert(valueExp, typeof(string)), tryparseVarExp)),
|
Expression.IsTrue(Expression.Call(MethodUIntTryParse, Expression.Convert(valueExp, typeof(string)), Expression.Constant(System.Globalization.NumberStyles.Any), Expression.Constant(null, typeof(IFormatProvider)), tryparseVarExp)),
|
||||||
Expression.Return(returnTarget, Expression.Convert(tryparseVarExp, typeof(object))),
|
Expression.Return(returnTarget, Expression.Convert(tryparseVarExp, typeof(object))),
|
||||||
Expression.Return(returnTarget, Expression.Convert(Expression.Default(typeOrg), typeof(object)))
|
Expression.Return(returnTarget, Expression.Convert(Expression.Default(typeOrg), typeof(object)))
|
||||||
)
|
)
|
||||||
@ -1872,7 +1872,7 @@ namespace FreeSql.Internal
|
|||||||
new[] { tryparseVarExp = Expression.Variable(typeof(ulong)) },
|
new[] { tryparseVarExp = Expression.Variable(typeof(ulong)) },
|
||||||
new Expression[] {
|
new Expression[] {
|
||||||
Expression.IfThenElse(
|
Expression.IfThenElse(
|
||||||
Expression.IsTrue(Expression.Call(MethodULongTryParse, Expression.Convert(valueExp, typeof(string)), tryparseVarExp)),
|
Expression.IsTrue(Expression.Call(MethodULongTryParse, Expression.Convert(valueExp, typeof(string)), Expression.Constant(System.Globalization.NumberStyles.Any), Expression.Constant(null, typeof(IFormatProvider)), tryparseVarExp)),
|
||||||
Expression.Return(returnTarget, Expression.Convert(tryparseVarExp, typeof(object))),
|
Expression.Return(returnTarget, Expression.Convert(tryparseVarExp, typeof(object))),
|
||||||
Expression.Return(returnTarget, Expression.Convert(Expression.Default(typeOrg), typeof(object)))
|
Expression.Return(returnTarget, Expression.Convert(Expression.Default(typeOrg), typeof(object)))
|
||||||
)
|
)
|
||||||
@ -1884,7 +1884,7 @@ namespace FreeSql.Internal
|
|||||||
new[] { tryparseVarExp = Expression.Variable(typeof(float)) },
|
new[] { tryparseVarExp = Expression.Variable(typeof(float)) },
|
||||||
new Expression[] {
|
new Expression[] {
|
||||||
Expression.IfThenElse(
|
Expression.IfThenElse(
|
||||||
Expression.IsTrue(Expression.Call(MethodFloatTryParse, Expression.Convert(valueExp, typeof(string)), tryparseVarExp)),
|
Expression.IsTrue(Expression.Call(MethodFloatTryParse, Expression.Convert(valueExp, typeof(string)), Expression.Constant(System.Globalization.NumberStyles.Any), Expression.Constant(null, typeof(IFormatProvider)), tryparseVarExp)),
|
||||||
Expression.Return(returnTarget, Expression.Convert(tryparseVarExp, typeof(object))),
|
Expression.Return(returnTarget, Expression.Convert(tryparseVarExp, typeof(object))),
|
||||||
Expression.Return(returnTarget, Expression.Convert(Expression.Default(typeOrg), typeof(object)))
|
Expression.Return(returnTarget, Expression.Convert(Expression.Default(typeOrg), typeof(object)))
|
||||||
)
|
)
|
||||||
@ -1896,7 +1896,7 @@ namespace FreeSql.Internal
|
|||||||
new[] { tryparseVarExp = Expression.Variable(typeof(double)) },
|
new[] { tryparseVarExp = Expression.Variable(typeof(double)) },
|
||||||
new Expression[] {
|
new Expression[] {
|
||||||
Expression.IfThenElse(
|
Expression.IfThenElse(
|
||||||
Expression.IsTrue(Expression.Call(MethodDoubleTryParse, Expression.Convert(valueExp, typeof(string)), tryparseVarExp)),
|
Expression.IsTrue(Expression.Call(MethodDoubleTryParse, Expression.Convert(valueExp, typeof(string)), Expression.Constant(System.Globalization.NumberStyles.Any), Expression.Constant(null, typeof(IFormatProvider)), tryparseVarExp)),
|
||||||
Expression.Return(returnTarget, Expression.Convert(tryparseVarExp, typeof(object))),
|
Expression.Return(returnTarget, Expression.Convert(tryparseVarExp, typeof(object))),
|
||||||
Expression.Return(returnTarget, Expression.Convert(Expression.Default(typeOrg), typeof(object)))
|
Expression.Return(returnTarget, Expression.Convert(Expression.Default(typeOrg), typeof(object)))
|
||||||
)
|
)
|
||||||
@ -1908,7 +1908,7 @@ namespace FreeSql.Internal
|
|||||||
new[] { tryparseVarExp = Expression.Variable(typeof(decimal)) },
|
new[] { tryparseVarExp = Expression.Variable(typeof(decimal)) },
|
||||||
new Expression[] {
|
new Expression[] {
|
||||||
Expression.IfThenElse(
|
Expression.IfThenElse(
|
||||||
Expression.IsTrue(Expression.Call(MethodDecimalTryParse, Expression.Convert(valueExp, typeof(string)), tryparseVarExp)),
|
Expression.IsTrue(Expression.Call(MethodDecimalTryParse, Expression.Convert(valueExp, typeof(string)), Expression.Constant(System.Globalization.NumberStyles.Any), Expression.Constant(null, typeof(IFormatProvider)), tryparseVarExp)),
|
||||||
Expression.Return(returnTarget, Expression.Convert(tryparseVarExp, typeof(object))),
|
Expression.Return(returnTarget, Expression.Convert(tryparseVarExp, typeof(object))),
|
||||||
Expression.Return(returnTarget, Expression.Convert(Expression.Default(typeOrg), typeof(object)))
|
Expression.Return(returnTarget, Expression.Convert(Expression.Default(typeOrg), typeof(object)))
|
||||||
)
|
)
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>netstandard2.0;net45;net40</TargetFrameworks>
|
<TargetFrameworks>netstandard2.0;net45;net40</TargetFrameworks>
|
||||||
<Version>1.4.0-preview20200404</Version>
|
<Version>1.3.5</Version>
|
||||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||||
<Authors>YeXiangQin</Authors>
|
<Authors>YeXiangQin</Authors>
|
||||||
<Description>FreeSql 数据库 Ms Access 实现</Description>
|
<Description>FreeSql 数据库 Ms Access 实现</Description>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>netstandard2.0;net452;net451;net45;net40</TargetFrameworks>
|
<TargetFrameworks>netstandard2.0;net452;net451;net45;net40</TargetFrameworks>
|
||||||
<Version>1.4.0-preview20200404</Version>
|
<Version>1.3.5</Version>
|
||||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||||
<Authors>YeXiangQin</Authors>
|
<Authors>YeXiangQin</Authors>
|
||||||
<Description>FreeSql 数据库实现,基于 MySql 5.6,Ado.Net 驱动是 MySql.Data(Oracle官方)</Description>
|
<Description>FreeSql 数据库实现,基于 MySql 5.6,Ado.Net 驱动是 MySql.Data(Oracle官方)</Description>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>netstandard2.0;net45</TargetFrameworks>
|
<TargetFrameworks>netstandard2.0;net45</TargetFrameworks>
|
||||||
<Version>1.4.0-preview20200404</Version>
|
<Version>1.3.5</Version>
|
||||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||||
<Authors>YeXiangQin</Authors>
|
<Authors>YeXiangQin</Authors>
|
||||||
<Description>FreeSql 数据库实现,基于 MySql 5.6,Ado.Net 驱动是 MySqlConnector</Description>
|
<Description>FreeSql 数据库实现,基于 MySql 5.6,Ado.Net 驱动是 MySqlConnector</Description>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>netstandard2.0;net45;net40</TargetFrameworks>
|
<TargetFrameworks>netstandard2.0;net45;net40</TargetFrameworks>
|
||||||
<Version>1.4.0-preview20200404</Version>
|
<Version>1.3.5</Version>
|
||||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||||
<Authors>YeXiangQin</Authors>
|
<Authors>YeXiangQin</Authors>
|
||||||
<Description>FreeSql 数据库 Odbc 实现,基于 {Oracle}、{SQL Server}、{MySQL ODBC 8.0 Unicode Driver}、{PostgreSQL Unicode(x64)}、{DM8 ODBC Driver} 专用访问实现,以及通用 Odbc 访问所有数据库</Description>
|
<Description>FreeSql 数据库 Odbc 实现,基于 {Oracle}、{SQL Server}、{MySQL ODBC 8.0 Unicode Driver}、{PostgreSQL Unicode(x64)}、{DM8 ODBC Driver} 专用访问实现,以及通用 Odbc 访问所有数据库</Description>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>netstandard2.0;net45;net40</TargetFrameworks>
|
<TargetFrameworks>netstandard2.0;net45;net40</TargetFrameworks>
|
||||||
<Version>1.4.0-preview20200404</Version>
|
<Version>1.3.5</Version>
|
||||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||||
<Authors>YeXiangQin</Authors>
|
<Authors>YeXiangQin</Authors>
|
||||||
<Description>FreeSql 数据库实现,基于 Oracle 11</Description>
|
<Description>FreeSql 数据库实现,基于 Oracle 11</Description>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>netstandard2.0;net461;net452;net451;net45</TargetFrameworks>
|
<TargetFrameworks>netstandard2.0;net461;net452;net451;net45</TargetFrameworks>
|
||||||
<Version>1.4.0-preview20200404</Version>
|
<Version>1.3.5</Version>
|
||||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||||
<Authors>YeXiangQin</Authors>
|
<Authors>YeXiangQin</Authors>
|
||||||
<Description>FreeSql 数据库实现,基于 PostgreSQL 9.5</Description>
|
<Description>FreeSql 数据库实现,基于 PostgreSQL 9.5</Description>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>netstandard2.0;net451;net45;net40</TargetFrameworks>
|
<TargetFrameworks>netstandard2.0;net451;net45;net40</TargetFrameworks>
|
||||||
<Version>1.4.0-preview20200404</Version>
|
<Version>1.3.5</Version>
|
||||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||||
<Authors>YeXiangQin</Authors>
|
<Authors>YeXiangQin</Authors>
|
||||||
<Description>FreeSql 数据库实现,基于 SqlServer 2005+,并根据版本适配分页方法:row_number 或 offset fetch next</Description>
|
<Description>FreeSql 数据库实现,基于 SqlServer 2005+,并根据版本适配分页方法:row_number 或 offset fetch next</Description>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>netstandard2.0;net45;net40</TargetFrameworks>
|
<TargetFrameworks>netstandard2.0;net45;net40</TargetFrameworks>
|
||||||
<Version>1.4.0-preview20200404</Version>
|
<Version>1.3.5</Version>
|
||||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||||
<Authors>YeXiangQin</Authors>
|
<Authors>YeXiangQin</Authors>
|
||||||
<Description>FreeSql 数据库实现,基于 Sqlite 3.0,支持 .NetCore、.NetFramework、Xamarin</Description>
|
<Description>FreeSql 数据库实现,基于 Sqlite 3.0,支持 .NetCore、.NetFramework、Xamarin</Description>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user