mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Update Core
This commit is contained in:
@@ -45,7 +45,7 @@ namespace SqlSugar
|
||||
}
|
||||
public virtual void InitTables(string entitiesNamespace)
|
||||
{
|
||||
var types =ReflectionExtensions.LoadAssembly(entitiesNamespace).GetTypes();
|
||||
var types = ReflectionCore.Load(entitiesNamespace).GetTypes();
|
||||
InitTables(types);
|
||||
}
|
||||
public virtual void InitTables(params string[] entitiesNamespaces)
|
||||
|
@@ -114,10 +114,6 @@ namespace SqlSugar
|
||||
}
|
||||
}
|
||||
var stringValue = SerializeObject(result);
|
||||
if (stringValue.IsValuable())
|
||||
{
|
||||
stringValue = stringValue.Replace(":{}", ":null");
|
||||
}
|
||||
reval.Add((T)DeserializeObject<T>(stringValue));
|
||||
}
|
||||
reader.Close();
|
||||
|
@@ -8,7 +8,7 @@ namespace SqlSugar
|
||||
{
|
||||
public class InstanceFactory
|
||||
{
|
||||
static Assembly assembly = ReflectionExtensions.LoadAssembly(PubConst.AssemblyName);
|
||||
static Assembly assembly = ReflectionCore.Load(PubConst.AssemblyName);
|
||||
static Dictionary<string, Type> typeCache = new Dictionary<string, Type>();
|
||||
|
||||
#region Queryable
|
||||
|
@@ -97,7 +97,7 @@ namespace SqlSugar
|
||||
new ISugarQueryable<T, T2> Where(Expression<Func<T, bool>> expression);
|
||||
ISugarQueryable<T, T2> Where(Expression<Func<T, T2, bool>> expression);
|
||||
|
||||
ISugarQueryable<T, T2> WhereIF(bool isWhere, Expression<Func<T, bool>> expression);
|
||||
new ISugarQueryable<T, T2> WhereIF(bool isWhere,Expression<Func<T, bool>> expression);
|
||||
ISugarQueryable<T, T2> WhereIF(bool isWhere, Expression<Func<T, T2, bool>> expression);
|
||||
#endregion
|
||||
|
||||
@@ -122,7 +122,7 @@ namespace SqlSugar
|
||||
ISugarQueryable<T, T2, T3> Where(Expression<Func<T, T2, bool>> expression);
|
||||
ISugarQueryable<T, T2, T3> Where(Expression<Func<T, T2, T3, bool>> expression);
|
||||
|
||||
ISugarQueryable<T, T2, T3> WhereIF(bool isWhere, Expression<Func<T, bool>> expression);
|
||||
new ISugarQueryable<T, T2, T3> WhereIF(bool isWhere, Expression<Func<T, bool>> expression);
|
||||
ISugarQueryable<T, T2, T3> WhereIF(bool isWhere, Expression<Func<T, T2, bool>> expression);
|
||||
ISugarQueryable<T, T2, T3> WhereIF(bool isWhere, Expression<Func<T, T2, T3, bool>> expression);
|
||||
#endregion
|
||||
@@ -188,7 +188,7 @@ namespace SqlSugar
|
||||
ISugarQueryable<T, T2, T3, T4, T5> Where(Expression<Func<T, T2, T3, T4, T5, bool>> expression);
|
||||
|
||||
|
||||
ISugarQueryable<T, T2, T3, T4, T5> WhereIF(bool isWhere, Expression<Func<T, bool>> expression);
|
||||
new ISugarQueryable<T, T2, T3, T4, T5> WhereIF(bool isWhere, Expression<Func<T, bool>> expression);
|
||||
ISugarQueryable<T, T2, T3, T4, T5> WhereIF(bool isWhere, Expression<Func<T, T2, bool>> expression);
|
||||
ISugarQueryable<T, T2, T3, T4, T5> WhereIF(bool isWhere, Expression<Func<T, T2, T3, bool>> expression);
|
||||
ISugarQueryable<T, T2, T3, T4, T5> WhereIF(bool isWhere, Expression<Func<T, T2, T3, T4, bool>> expression);
|
||||
@@ -228,7 +228,7 @@ namespace SqlSugar
|
||||
ISugarQueryable<T, T2, T3, T4, T5, T6> Where(Expression<Func<T, T2, T3, T4, T5, bool>> expression);
|
||||
ISugarQueryable<T, T2, T3, T4, T5, T6> Where(Expression<Func<T, T2, T3, T4, T5, T6, bool>> expression);
|
||||
|
||||
ISugarQueryable<T, T2, T3, T4, T5, T6> WhereIF(bool isWhere, Expression<Func<T, bool>> expression);
|
||||
new ISugarQueryable<T, T2, T3, T4, T5, T6> WhereIF(bool isWhere, Expression<Func<T, bool>> expression);
|
||||
ISugarQueryable<T, T2, T3, T4, T5, T6> WhereIF(bool isWhere, Expression<Func<T, T2, bool>> expression);
|
||||
ISugarQueryable<T, T2, T3, T4, T5, T6> WhereIF(bool isWhere, Expression<Func<T, T2, T3, bool>> expression);
|
||||
ISugarQueryable<T, T2, T3, T4, T5, T6> WhereIF(bool isWhere, Expression<Func<T, T2, T3, T4, bool>> expression);
|
||||
|
@@ -6,9 +6,9 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace SqlSugar
|
||||
{
|
||||
public class ReflectionExtensions
|
||||
public static class ReflectionCore
|
||||
{
|
||||
public static Assembly LoadAssembly(string name)
|
||||
public static Assembly Load(string name)
|
||||
{
|
||||
return Assembly.Load(new AssemblyName(PubConst.AssemblyName));
|
||||
}
|
||||
|
Reference in New Issue
Block a user