mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	- 增加 nuget 包强签名发布 v1.2.0-preview2;#201
This commit is contained in:
		@@ -2,7 +2,7 @@
 | 
			
		||||
 | 
			
		||||
	<PropertyGroup>
 | 
			
		||||
		<TargetFrameworks>netstandard2.0;net45;net40</TargetFrameworks>
 | 
			
		||||
		<Version>1.2.0-preview1</Version>
 | 
			
		||||
		<Version>1.2.0-preview2</Version>
 | 
			
		||||
		<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
 | 
			
		||||
		<Authors>YeXiangQin</Authors>
 | 
			
		||||
		<Description>FreeSql is the ORM in .NetCore, .NetFramework, And Xamarin. It supports Mysql, Postgresql, SqlServer, Oracle, Sqlite, Odbc, 达梦, And Access</Description>
 | 
			
		||||
@@ -16,6 +16,9 @@
 | 
			
		||||
		<Title>$(AssemblyName)</Title>
 | 
			
		||||
		<IsPackable>true</IsPackable>
 | 
			
		||||
		<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
 | 
			
		||||
		<SignAssembly>true</SignAssembly>
 | 
			
		||||
		<AssemblyOriginatorKeyFile>YeXiangQin.pfx</AssemblyOriginatorKeyFile>
 | 
			
		||||
		<DelaySign>false</DelaySign>
 | 
			
		||||
	</PropertyGroup>
 | 
			
		||||
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
@@ -28,7 +31,7 @@
 | 
			
		||||
	</PropertyGroup>
 | 
			
		||||
 | 
			
		||||
	<ItemGroup>
 | 
			
		||||
	  <PackageReference Include="SafeObjectPool" Version="2.2.1" />
 | 
			
		||||
	  <PackageReference Include="SafeObjectPool" Version="2.3.0" />
 | 
			
		||||
	  <PackageReference Include="System.ValueTuple" Version="4.5.0" />
 | 
			
		||||
	</ItemGroup>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -722,7 +722,11 @@
 | 
			
		||||
        </member>
 | 
			
		||||
        <member name="M:FreeSql.FreeSqlBuilder.UseGenerateCommandParameterWithLambda(System.Boolean)">
 | 
			
		||||
            <summary>
 | 
			
		||||
            是否生成命令参数化执行,针对 lambda 表达式解析
 | 
			
		||||
            是否生成命令参数化执行,针对 lambda 表达式解析<para></para>
 | 
			
		||||
            注意:常量不会参数化,变量才会做参数化<para></para>
 | 
			
		||||
            var id = 100;
 | 
			
		||||
            fsql.Select<T>().Where(a => a.id == id) 会参数化<para></para>
 | 
			
		||||
            fsql.Select<T>().Where(a => a.id == 100) 不会参数化
 | 
			
		||||
            </summary>
 | 
			
		||||
            <param name="value"></param>
 | 
			
		||||
            <returns></returns>
 | 
			
		||||
@@ -2135,7 +2139,7 @@
 | 
			
		||||
        </member>
 | 
			
		||||
        <member name="M:FreeSql.IAdo.ExecuteReader(System.Action{System.Data.Common.DbDataReader},System.String,System.Object)">
 | 
			
		||||
            <summary>
 | 
			
		||||
            查询,ExecuteReader(dr => {}, "select * from user where age > @age", new { age = 25 })
 | 
			
		||||
            查询,ExecuteReader(dr => {}, "select * from user where age > ?age", new { age = 25 })
 | 
			
		||||
            </summary>
 | 
			
		||||
            <param name="cmdText"></param>
 | 
			
		||||
            <param name="parms"></param>
 | 
			
		||||
@@ -2149,7 +2153,7 @@
 | 
			
		||||
        </member>
 | 
			
		||||
        <member name="M:FreeSql.IAdo.ExecuteArray(System.String,System.Object)">
 | 
			
		||||
            <summary>
 | 
			
		||||
            查询,ExecuteArray("select * from user where age > @age", new { age = 25 })
 | 
			
		||||
            查询,ExecuteArray("select * from user where age > ?age", new { age = 25 })
 | 
			
		||||
            </summary>
 | 
			
		||||
            <param name="cmdText"></param>
 | 
			
		||||
            <param name="parms"></param>
 | 
			
		||||
@@ -2164,7 +2168,7 @@
 | 
			
		||||
        </member>
 | 
			
		||||
        <member name="M:FreeSql.IAdo.ExecuteDataSet(System.String,System.Object)">
 | 
			
		||||
            <summary>
 | 
			
		||||
            查询,ExecuteDataSet("select * from user where age > @age; select 2", new { age = 25 })
 | 
			
		||||
            查询,ExecuteDataSet("select * from user where age > ?age; select 2", new { age = 25 })
 | 
			
		||||
            </summary>
 | 
			
		||||
            <param name="cmdText"></param>
 | 
			
		||||
            <param name="parms"></param>
 | 
			
		||||
@@ -2179,7 +2183,7 @@
 | 
			
		||||
        </member>
 | 
			
		||||
        <member name="M:FreeSql.IAdo.ExecuteDataTable(System.String,System.Object)">
 | 
			
		||||
            <summary>
 | 
			
		||||
            查询,ExecuteDataTable("select * from user where age > @age", new { age = 25 })
 | 
			
		||||
            查询,ExecuteDataTable("select * from user where age > ?age", new { age = 25 })
 | 
			
		||||
            </summary>
 | 
			
		||||
            <param name="cmdText"></param>
 | 
			
		||||
            <param name="parms"></param>
 | 
			
		||||
@@ -2195,7 +2199,7 @@
 | 
			
		||||
        </member>
 | 
			
		||||
        <member name="M:FreeSql.IAdo.ExecuteNonQuery(System.String,System.Object)">
 | 
			
		||||
            <summary>
 | 
			
		||||
            在【主库】执行,ExecuteNonQuery("delete from user where age > @age", new { age = 25 })
 | 
			
		||||
            在【主库】执行,ExecuteNonQuery("delete from user where age > ?age", new { age = 25 })
 | 
			
		||||
            </summary>
 | 
			
		||||
            <param name="cmdText"></param>
 | 
			
		||||
            <param name="parms"></param>
 | 
			
		||||
@@ -2211,7 +2215,7 @@
 | 
			
		||||
        </member>
 | 
			
		||||
        <member name="M:FreeSql.IAdo.ExecuteScalar(System.String,System.Object)">
 | 
			
		||||
            <summary>
 | 
			
		||||
            在【主库】执行,ExecuteScalar("select 1 from user where age > @age", new { age = 25 })
 | 
			
		||||
            在【主库】执行,ExecuteScalar("select 1 from user where age > ?age", new { age = 25 })
 | 
			
		||||
            </summary>
 | 
			
		||||
            <param name="cmdText"></param>
 | 
			
		||||
            <param name="parms"></param>
 | 
			
		||||
@@ -2219,7 +2223,7 @@
 | 
			
		||||
        </member>
 | 
			
		||||
        <member name="M:FreeSql.IAdo.Query``1(System.Data.CommandType,System.String,System.Data.Common.DbParameter[])">
 | 
			
		||||
            <summary>
 | 
			
		||||
            执行SQL返回对象集合,Query<User>("select * from user where age > @age", new SqlParameter { ParameterName = "age", Value = 25 })
 | 
			
		||||
            执行SQL返回对象集合,Query<User>("select * from user where age > ?age", new SqlParameter { ParameterName = "age", Value = 25 })
 | 
			
		||||
            </summary>
 | 
			
		||||
            <typeparam name="T"></typeparam>
 | 
			
		||||
            <param name="cmdType"></param>
 | 
			
		||||
@@ -2229,7 +2233,7 @@
 | 
			
		||||
        </member>
 | 
			
		||||
        <member name="M:FreeSql.IAdo.Query``1(System.String,System.Object)">
 | 
			
		||||
            <summary>
 | 
			
		||||
            执行SQL返回对象集合,Query<User>("select * from user where age > @age", new { age = 25 })
 | 
			
		||||
            执行SQL返回对象集合,Query<User>("select * from user where age > ?age", new { age = 25 })
 | 
			
		||||
            </summary>
 | 
			
		||||
            <typeparam name="T"></typeparam>
 | 
			
		||||
            <param name="cmdText"></param>
 | 
			
		||||
@@ -2238,7 +2242,7 @@
 | 
			
		||||
        </member>
 | 
			
		||||
        <member name="M:FreeSql.IAdo.Query``2(System.Data.CommandType,System.String,System.Data.Common.DbParameter[])">
 | 
			
		||||
            <summary>
 | 
			
		||||
            执行SQL返回对象集合,Query<User>("select * from user where age > @age; select * from address", new SqlParameter { ParameterName = "age", Value = 25 })
 | 
			
		||||
            执行SQL返回对象集合,Query<User>("select * from user where age > ?age; select * from address", new SqlParameter { ParameterName = "age", Value = 25 })
 | 
			
		||||
            </summary>
 | 
			
		||||
            <typeparam name="T1"></typeparam>
 | 
			
		||||
            <param name="cmdType"></param>
 | 
			
		||||
@@ -2248,7 +2252,7 @@
 | 
			
		||||
        </member>
 | 
			
		||||
        <member name="M:FreeSql.IAdo.Query``2(System.String,System.Object)">
 | 
			
		||||
            <summary>
 | 
			
		||||
            执行SQL返回对象集合,Query<User>("select * from user where age > @age; select * from address", new { age = 25 })
 | 
			
		||||
            执行SQL返回对象集合,Query<User>("select * from user where age > ?age; select * from address", new { age = 25 })
 | 
			
		||||
            </summary>
 | 
			
		||||
            <typeparam name="T1"></typeparam>
 | 
			
		||||
            <param name="cmdText"></param>
 | 
			
		||||
@@ -2266,7 +2270,7 @@
 | 
			
		||||
        </member>
 | 
			
		||||
        <member name="M:FreeSql.IAdo.ExecuteReaderAsync(System.Func{System.Data.Common.DbDataReader,System.Threading.Tasks.Task},System.String,System.Object)">
 | 
			
		||||
            <summary>
 | 
			
		||||
            查询,ExecuteReaderAsync(dr => {}, "select * from user where age > @age", new { age = 25 })
 | 
			
		||||
            查询,ExecuteReaderAsync(dr => {}, "select * from user where age > ?age", new { age = 25 })
 | 
			
		||||
            </summary>
 | 
			
		||||
            <param name="cmdText"></param>
 | 
			
		||||
            <param name="parms"></param>
 | 
			
		||||
@@ -2280,7 +2284,7 @@
 | 
			
		||||
        </member>
 | 
			
		||||
        <member name="M:FreeSql.IAdo.ExecuteArrayAsync(System.String,System.Object)">
 | 
			
		||||
            <summary>
 | 
			
		||||
            查询,ExecuteArrayAsync("select * from user where age > @age", new { age = 25 })
 | 
			
		||||
            查询,ExecuteArrayAsync("select * from user where age > ?age", new { age = 25 })
 | 
			
		||||
            </summary>
 | 
			
		||||
            <param name="cmdText"></param>
 | 
			
		||||
            <param name="parms"></param>
 | 
			
		||||
@@ -2295,7 +2299,7 @@
 | 
			
		||||
        </member>
 | 
			
		||||
        <member name="M:FreeSql.IAdo.ExecuteDataSetAsync(System.String,System.Object)">
 | 
			
		||||
            <summary>
 | 
			
		||||
            查询,ExecuteDataSetAsync("select * from user where age > @age; select 2", new { age = 25 })
 | 
			
		||||
            查询,ExecuteDataSetAsync("select * from user where age > ?age; select 2", new { age = 25 })
 | 
			
		||||
            </summary>
 | 
			
		||||
            <param name="cmdText"></param>
 | 
			
		||||
            <param name="parms"></param>
 | 
			
		||||
@@ -2310,7 +2314,7 @@
 | 
			
		||||
        </member>
 | 
			
		||||
        <member name="M:FreeSql.IAdo.ExecuteDataTableAsync(System.String,System.Object)">
 | 
			
		||||
            <summary>
 | 
			
		||||
            查询,ExecuteDataTableAsync("select * from user where age > @age", new { age = 25 })
 | 
			
		||||
            查询,ExecuteDataTableAsync("select * from user where age > ?age", new { age = 25 })
 | 
			
		||||
            </summary>
 | 
			
		||||
            <param name="cmdText"></param>
 | 
			
		||||
            <param name="parms"></param>
 | 
			
		||||
@@ -2326,7 +2330,7 @@
 | 
			
		||||
        </member>
 | 
			
		||||
        <member name="M:FreeSql.IAdo.ExecuteNonQueryAsync(System.String,System.Object)">
 | 
			
		||||
            <summary>
 | 
			
		||||
            在【主库】执行,ExecuteNonQueryAsync("delete from user where age > @age", new { age = 25 })
 | 
			
		||||
            在【主库】执行,ExecuteNonQueryAsync("delete from user where age > ?age", new { age = 25 })
 | 
			
		||||
            </summary>
 | 
			
		||||
            <param name="cmdText"></param>
 | 
			
		||||
            <param name="parms"></param>
 | 
			
		||||
@@ -2342,7 +2346,7 @@
 | 
			
		||||
        </member>
 | 
			
		||||
        <member name="M:FreeSql.IAdo.ExecuteScalarAsync(System.String,System.Object)">
 | 
			
		||||
            <summary>
 | 
			
		||||
            在【主库】执行,ExecuteScalarAsync("select 1 from user where age > @age", new { age = 25 })
 | 
			
		||||
            在【主库】执行,ExecuteScalarAsync("select 1 from user where age > ?age", new { age = 25 })
 | 
			
		||||
            </summary>
 | 
			
		||||
            <param name="cmdText"></param>
 | 
			
		||||
            <param name="parms"></param>
 | 
			
		||||
@@ -2350,7 +2354,7 @@
 | 
			
		||||
        </member>
 | 
			
		||||
        <member name="M:FreeSql.IAdo.QueryAsync``1(System.Data.CommandType,System.String,System.Data.Common.DbParameter[])">
 | 
			
		||||
            <summary>
 | 
			
		||||
            执行SQL返回对象集合,QueryAsync<User>("select * from user where age > @age", new SqlParameter { ParameterName = "age", Value = 25 })
 | 
			
		||||
            执行SQL返回对象集合,QueryAsync<User>("select * from user where age > ?age", new SqlParameter { ParameterName = "age", Value = 25 })
 | 
			
		||||
            </summary>
 | 
			
		||||
            <typeparam name="T"></typeparam>
 | 
			
		||||
            <param name="cmdType"></param>
 | 
			
		||||
@@ -2360,7 +2364,7 @@
 | 
			
		||||
        </member>
 | 
			
		||||
        <member name="M:FreeSql.IAdo.QueryAsync``1(System.String,System.Object)">
 | 
			
		||||
            <summary>
 | 
			
		||||
            执行SQL返回对象集合,QueryAsync<User>("select * from user where age > @age", new { age = 25 })
 | 
			
		||||
            执行SQL返回对象集合,QueryAsync<User>("select * from user where age > ?age", new { age = 25 })
 | 
			
		||||
            </summary>
 | 
			
		||||
            <typeparam name="T"></typeparam>
 | 
			
		||||
            <param name="cmdText"></param>
 | 
			
		||||
@@ -2369,7 +2373,7 @@
 | 
			
		||||
        </member>
 | 
			
		||||
        <member name="M:FreeSql.IAdo.QueryAsync``2(System.Data.CommandType,System.String,System.Data.Common.DbParameter[])">
 | 
			
		||||
            <summary>
 | 
			
		||||
            执行SQL返回对象集合,Query<User>("select * from user where age > @age; select * from address", new SqlParameter { ParameterName = "age", Value = 25 })
 | 
			
		||||
            执行SQL返回对象集合,Query<User>("select * from user where age > ?age; select * from address", new SqlParameter { ParameterName = "age", Value = 25 })
 | 
			
		||||
            </summary>
 | 
			
		||||
            <typeparam name="T1"></typeparam>
 | 
			
		||||
            <param name="cmdType"></param>
 | 
			
		||||
@@ -2379,7 +2383,7 @@
 | 
			
		||||
        </member>
 | 
			
		||||
        <member name="M:FreeSql.IAdo.QueryAsync``2(System.String,System.Object)">
 | 
			
		||||
            <summary>
 | 
			
		||||
            执行SQL返回对象集合,Query<User>("select * from user where age > @age; select * from address", new { age = 25 })
 | 
			
		||||
            执行SQL返回对象集合,Query<User>("select * from user where age > ?age; select * from address", new { age = 25 })
 | 
			
		||||
            </summary>
 | 
			
		||||
            <typeparam name="T1"></typeparam>
 | 
			
		||||
            <param name="cmdText"></param>
 | 
			
		||||
@@ -2600,7 +2604,11 @@
 | 
			
		||||
        </member>
 | 
			
		||||
        <member name="P:FreeSql.ICodeFirst.IsGenerateCommandParameterWithLambda">
 | 
			
		||||
            <summary>
 | 
			
		||||
            是否生成命令参数化执行,针对 lambda 表达式解析
 | 
			
		||||
            是否生成命令参数化执行,针对 lambda 表达式解析<para></para>
 | 
			
		||||
            注意:常量不会参数化,变量才会做参数化<para></para>
 | 
			
		||||
            var id = 100;
 | 
			
		||||
            fsql.Select<T>().Where(a => a.id == id) 会参数化<para></para>
 | 
			
		||||
            fsql.Select<T>().Where(a => a.id == 100) 不会参数化
 | 
			
		||||
            </summary>
 | 
			
		||||
        </member>
 | 
			
		||||
        <member name="P:FreeSql.ICodeFirst.IsLazyLoading">
 | 
			
		||||
 
 | 
			
		||||
@@ -68,7 +68,7 @@ namespace FreeSql
 | 
			
		||||
        void ExecuteReader(DbTransaction transaction, Action<DbDataReader> readerHander, CommandType cmdType, string cmdText, params DbParameter[] cmdParms);
 | 
			
		||||
        void ExecuteReader(DbConnection connection, DbTransaction transaction, Action<DbDataReader> readerHander, CommandType cmdType, string cmdText, params DbParameter[] cmdParms);
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 查询,ExecuteReader(dr => {}, "select * from user where age > @age", new { age = 25 })
 | 
			
		||||
        /// 查询,ExecuteReader(dr => {}, "select * from user where age > ?age", new { age = 25 })
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <param name="cmdText"></param>
 | 
			
		||||
        /// <param name="parms"></param>
 | 
			
		||||
@@ -84,7 +84,7 @@ namespace FreeSql
 | 
			
		||||
        object[][] ExecuteArray(DbTransaction transaction, CommandType cmdType, string cmdText, params DbParameter[] cmdParms);
 | 
			
		||||
        object[][] ExecuteArray(DbConnection connection, DbTransaction transaction, CommandType cmdType, string cmdText, params DbParameter[] cmdParms);
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 查询,ExecuteArray("select * from user where age > @age", new { age = 25 })
 | 
			
		||||
        /// 查询,ExecuteArray("select * from user where age > ?age", new { age = 25 })
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <param name="cmdText"></param>
 | 
			
		||||
        /// <param name="parms"></param>
 | 
			
		||||
@@ -101,7 +101,7 @@ namespace FreeSql
 | 
			
		||||
        DataSet ExecuteDataSet(DbTransaction transaction, CommandType cmdType, string cmdText, params DbParameter[] cmdParms);
 | 
			
		||||
        DataSet ExecuteDataSet(DbConnection connection, DbTransaction transaction, CommandType cmdType, string cmdText, params DbParameter[] cmdParms);
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 查询,ExecuteDataSet("select * from user where age > @age; select 2", new { age = 25 })
 | 
			
		||||
        /// 查询,ExecuteDataSet("select * from user where age > ?age; select 2", new { age = 25 })
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <param name="cmdText"></param>
 | 
			
		||||
        /// <param name="parms"></param>
 | 
			
		||||
@@ -118,7 +118,7 @@ namespace FreeSql
 | 
			
		||||
        DataTable ExecuteDataTable(DbTransaction transaction, CommandType cmdType, string cmdText, params DbParameter[] cmdParms);
 | 
			
		||||
        DataTable ExecuteDataTable(DbConnection connection, DbTransaction transaction, CommandType cmdType, string cmdText, params DbParameter[] cmdParms);
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 查询,ExecuteDataTable("select * from user where age > @age", new { age = 25 })
 | 
			
		||||
        /// 查询,ExecuteDataTable("select * from user where age > ?age", new { age = 25 })
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <param name="cmdText"></param>
 | 
			
		||||
        /// <param name="parms"></param>
 | 
			
		||||
@@ -136,7 +136,7 @@ namespace FreeSql
 | 
			
		||||
        int ExecuteNonQuery(DbTransaction transaction, CommandType cmdType, string cmdText, params DbParameter[] cmdParms);
 | 
			
		||||
        int ExecuteNonQuery(DbConnection connection, DbTransaction transaction, CommandType cmdType, string cmdText, params DbParameter[] cmdParms);
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 在【主库】执行,ExecuteNonQuery("delete from user where age > @age", new { age = 25 })
 | 
			
		||||
        /// 在【主库】执行,ExecuteNonQuery("delete from user where age > ?age", new { age = 25 })
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <param name="cmdText"></param>
 | 
			
		||||
        /// <param name="parms"></param>
 | 
			
		||||
@@ -154,7 +154,7 @@ namespace FreeSql
 | 
			
		||||
        object ExecuteScalar(DbTransaction transaction, CommandType cmdType, string cmdText, params DbParameter[] cmdParms);
 | 
			
		||||
        object ExecuteScalar(DbConnection connection, DbTransaction transaction, CommandType cmdType, string cmdText, params DbParameter[] cmdParms);
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 在【主库】执行,ExecuteScalar("select 1 from user where age > @age", new { age = 25 })
 | 
			
		||||
        /// 在【主库】执行,ExecuteScalar("select 1 from user where age > ?age", new { age = 25 })
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <param name="cmdText"></param>
 | 
			
		||||
        /// <param name="parms"></param>
 | 
			
		||||
@@ -164,7 +164,7 @@ namespace FreeSql
 | 
			
		||||
        object ExecuteScalar(DbConnection connection, DbTransaction transaction, string cmdText, object parms = null);
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 执行SQL返回对象集合,Query<User>("select * from user where age > @age", new SqlParameter { ParameterName = "age", Value = 25 })
 | 
			
		||||
        /// 执行SQL返回对象集合,Query<User>("select * from user where age > ?age", new SqlParameter { ParameterName = "age", Value = 25 })
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <typeparam name="T"></typeparam>
 | 
			
		||||
        /// <param name="cmdType"></param>
 | 
			
		||||
@@ -175,7 +175,7 @@ namespace FreeSql
 | 
			
		||||
        List<T> Query<T>(DbTransaction transaction, CommandType cmdType, string cmdText, params DbParameter[] cmdParms);
 | 
			
		||||
        List<T> Query<T>(DbConnection connection, DbTransaction transaction, CommandType cmdType, string cmdText, params DbParameter[] cmdParms);
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 执行SQL返回对象集合,Query<User>("select * from user where age > @age", new { age = 25 })
 | 
			
		||||
        /// 执行SQL返回对象集合,Query<User>("select * from user where age > ?age", new { age = 25 })
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <typeparam name="T"></typeparam>
 | 
			
		||||
        /// <param name="cmdText"></param>
 | 
			
		||||
@@ -186,7 +186,7 @@ namespace FreeSql
 | 
			
		||||
        List<T> Query<T>(DbConnection connection, DbTransaction transaction, string cmdText, object parms = null);
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 执行SQL返回对象集合,Query<User>("select * from user where age > @age; select * from address", new SqlParameter { ParameterName = "age", Value = 25 })
 | 
			
		||||
        /// 执行SQL返回对象集合,Query<User>("select * from user where age > ?age; select * from address", new SqlParameter { ParameterName = "age", Value = 25 })
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <typeparam name="T1"></typeparam>
 | 
			
		||||
        /// <param name="cmdType"></param>
 | 
			
		||||
@@ -197,7 +197,7 @@ namespace FreeSql
 | 
			
		||||
        (List<T1>, List<T2>) Query<T1, T2>(DbTransaction transaction, CommandType cmdType, string cmdText, params DbParameter[] cmdParms);
 | 
			
		||||
        (List<T1>, List<T2>) Query<T1, T2>(DbConnection connection, DbTransaction transaction, CommandType cmdType, string cmdText, params DbParameter[] cmdParms);
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 执行SQL返回对象集合,Query<User>("select * from user where age > @age; select * from address", new { age = 25 })
 | 
			
		||||
        /// 执行SQL返回对象集合,Query<User>("select * from user where age > ?age; select * from address", new { age = 25 })
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <typeparam name="T1"></typeparam>
 | 
			
		||||
        /// <param name="cmdText"></param>
 | 
			
		||||
@@ -240,7 +240,7 @@ namespace FreeSql
 | 
			
		||||
        Task ExecuteReaderAsync(DbTransaction transaction, Func<DbDataReader, Task> readerHander, CommandType cmdType, string cmdText, params DbParameter[] cmdParms);
 | 
			
		||||
        Task ExecuteReaderAsync(DbConnection connection, DbTransaction transaction, Func<DbDataReader, Task> readerHander, CommandType cmdType, string cmdText, params DbParameter[] cmdParms);
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 查询,ExecuteReaderAsync(dr => {}, "select * from user where age > @age", new { age = 25 })
 | 
			
		||||
        /// 查询,ExecuteReaderAsync(dr => {}, "select * from user where age > ?age", new { age = 25 })
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <param name="cmdText"></param>
 | 
			
		||||
        /// <param name="parms"></param>
 | 
			
		||||
@@ -256,7 +256,7 @@ namespace FreeSql
 | 
			
		||||
        Task<object[][]> ExecuteArrayAsync(DbTransaction transaction, CommandType cmdType, string cmdText, params DbParameter[] cmdParms);
 | 
			
		||||
        Task<object[][]> ExecuteArrayAsync(DbConnection connection, DbTransaction transaction, CommandType cmdType, string cmdText, params DbParameter[] cmdParms);
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 查询,ExecuteArrayAsync("select * from user where age > @age", new { age = 25 })
 | 
			
		||||
        /// 查询,ExecuteArrayAsync("select * from user where age > ?age", new { age = 25 })
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <param name="cmdText"></param>
 | 
			
		||||
        /// <param name="parms"></param>
 | 
			
		||||
@@ -273,7 +273,7 @@ namespace FreeSql
 | 
			
		||||
        Task<DataSet> ExecuteDataSetAsync(DbTransaction transaction, CommandType cmdType, string cmdText, params DbParameter[] cmdParms);
 | 
			
		||||
        Task<DataSet> ExecuteDataSetAsync(DbConnection connection, DbTransaction transaction, CommandType cmdType, string cmdText, params DbParameter[] cmdParms);
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 查询,ExecuteDataSetAsync("select * from user where age > @age; select 2", new { age = 25 })
 | 
			
		||||
        /// 查询,ExecuteDataSetAsync("select * from user where age > ?age; select 2", new { age = 25 })
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <param name="cmdText"></param>
 | 
			
		||||
        /// <param name="parms"></param>
 | 
			
		||||
@@ -290,7 +290,7 @@ namespace FreeSql
 | 
			
		||||
        Task<DataTable> ExecuteDataTableAsync(DbTransaction transaction, CommandType cmdType, string cmdText, params DbParameter[] cmdParms);
 | 
			
		||||
        Task<DataTable> ExecuteDataTableAsync(DbConnection connection, DbTransaction transaction, CommandType cmdType, string cmdText, params DbParameter[] cmdParms);
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 查询,ExecuteDataTableAsync("select * from user where age > @age", new { age = 25 })
 | 
			
		||||
        /// 查询,ExecuteDataTableAsync("select * from user where age > ?age", new { age = 25 })
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <param name="cmdText"></param>
 | 
			
		||||
        /// <param name="parms"></param>
 | 
			
		||||
@@ -308,7 +308,7 @@ namespace FreeSql
 | 
			
		||||
        Task<int> ExecuteNonQueryAsync(DbTransaction transaction, CommandType cmdType, string cmdText, params DbParameter[] cmdParms);
 | 
			
		||||
        Task<int> ExecuteNonQueryAsync(DbConnection connection, DbTransaction transaction, CommandType cmdType, string cmdText, params DbParameter[] cmdParms);
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 在【主库】执行,ExecuteNonQueryAsync("delete from user where age > @age", new { age = 25 })
 | 
			
		||||
        /// 在【主库】执行,ExecuteNonQueryAsync("delete from user where age > ?age", new { age = 25 })
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <param name="cmdText"></param>
 | 
			
		||||
        /// <param name="parms"></param>
 | 
			
		||||
@@ -326,7 +326,7 @@ namespace FreeSql
 | 
			
		||||
        Task<object> ExecuteScalarAsync(DbTransaction transaction, CommandType cmdType, string cmdText, params DbParameter[] cmdParms);
 | 
			
		||||
        Task<object> ExecuteScalarAsync(DbConnection connection, DbTransaction transaction, CommandType cmdType, string cmdText, params DbParameter[] cmdParms);
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 在【主库】执行,ExecuteScalarAsync("select 1 from user where age > @age", new { age = 25 })
 | 
			
		||||
        /// 在【主库】执行,ExecuteScalarAsync("select 1 from user where age > ?age", new { age = 25 })
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <param name="cmdText"></param>
 | 
			
		||||
        /// <param name="parms"></param>
 | 
			
		||||
@@ -336,7 +336,7 @@ namespace FreeSql
 | 
			
		||||
        Task<object> ExecuteScalarAsync(DbConnection connection, DbTransaction transaction, string cmdText, object parms = null);
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 执行SQL返回对象集合,QueryAsync<User>("select * from user where age > @age", new SqlParameter { ParameterName = "age", Value = 25 })
 | 
			
		||||
        /// 执行SQL返回对象集合,QueryAsync<User>("select * from user where age > ?age", new SqlParameter { ParameterName = "age", Value = 25 })
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <typeparam name="T"></typeparam>
 | 
			
		||||
        /// <param name="cmdType"></param>
 | 
			
		||||
@@ -347,7 +347,7 @@ namespace FreeSql
 | 
			
		||||
        Task<List<T>> QueryAsync<T>(DbTransaction transaction, CommandType cmdType, string cmdText, params DbParameter[] cmdParms);
 | 
			
		||||
        Task<List<T>> QueryAsync<T>(DbConnection connection, DbTransaction transaction, CommandType cmdType, string cmdText, params DbParameter[] cmdParms);
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 执行SQL返回对象集合,QueryAsync<User>("select * from user where age > @age", new { age = 25 })
 | 
			
		||||
        /// 执行SQL返回对象集合,QueryAsync<User>("select * from user where age > ?age", new { age = 25 })
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <typeparam name="T"></typeparam>
 | 
			
		||||
        /// <param name="cmdText"></param>
 | 
			
		||||
@@ -358,7 +358,7 @@ namespace FreeSql
 | 
			
		||||
        Task<List<T>> QueryAsync<T>(DbConnection connection, DbTransaction transaction, string cmdText, object parms = null);
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 执行SQL返回对象集合,Query<User>("select * from user where age > @age; select * from address", new SqlParameter { ParameterName = "age", Value = 25 })
 | 
			
		||||
        /// 执行SQL返回对象集合,Query<User>("select * from user where age > ?age; select * from address", new SqlParameter { ParameterName = "age", Value = 25 })
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <typeparam name="T1"></typeparam>
 | 
			
		||||
        /// <param name="cmdType"></param>
 | 
			
		||||
@@ -369,7 +369,7 @@ namespace FreeSql
 | 
			
		||||
        Task<(List<T1>, List<T2>)> QueryAsync<T1, T2>(DbTransaction transaction, CommandType cmdType, string cmdText, params DbParameter[] cmdParms);
 | 
			
		||||
        Task<(List<T1>, List<T2>)> QueryAsync<T1, T2>(DbConnection connection, DbTransaction transaction, CommandType cmdType, string cmdText, params DbParameter[] cmdParms);
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 执行SQL返回对象集合,Query<User>("select * from user where age > @age; select * from address", new { age = 25 })
 | 
			
		||||
        /// 执行SQL返回对象集合,Query<User>("select * from user where age > ?age; select * from address", new { age = 25 })
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <typeparam name="T1"></typeparam>
 | 
			
		||||
        /// <param name="cmdText"></param>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user