Compare commits
No commits in common. "835fa8fd00fd559eac29cf93ea78bf3f0b0ab559" and "8703dff7d552b47ccae933f5b540239282840a9a" have entirely different histories.
835fa8fd00
...
8703dff7d5
@ -5,7 +5,6 @@ using APT.BaseData.Domain.IServices.BI;
|
|||||||
using APT.BaseData.Domain.IServices.BS;
|
using APT.BaseData.Domain.IServices.BS;
|
||||||
using APT.BaseData.Domain.IServices.EX;
|
using APT.BaseData.Domain.IServices.EX;
|
||||||
using APT.BaseData.Domain.IServices.FM;
|
using APT.BaseData.Domain.IServices.FM;
|
||||||
using APT.BaseData.Domain.IServices.OP;
|
|
||||||
using APT.BaseData.Domain.IServices.Platform;
|
using APT.BaseData.Domain.IServices.Platform;
|
||||||
using APT.BaseData.Services.DomainServices;
|
using APT.BaseData.Services.DomainServices;
|
||||||
using APT.BaseData.Services.Services.AE;
|
using APT.BaseData.Services.Services.AE;
|
||||||
@ -14,7 +13,6 @@ using APT.BaseData.Services.Services.BI;
|
|||||||
using APT.BaseData.Services.Services.BS;
|
using APT.BaseData.Services.Services.BS;
|
||||||
using APT.BaseData.Services.Services.EX;
|
using APT.BaseData.Services.Services.EX;
|
||||||
using APT.BaseData.Services.Services.FM;
|
using APT.BaseData.Services.Services.FM;
|
||||||
using APT.BaseData.Services.Services.OP;
|
|
||||||
using APT.BaseData.Services.Services.Platform;
|
using APT.BaseData.Services.Services.Platform;
|
||||||
using APT.BaseData.Services.Sys;
|
using APT.BaseData.Services.Sys;
|
||||||
using Autofac;
|
using Autofac;
|
||||||
@ -68,7 +66,6 @@ namespace APT.HM.WebApi.App_Start
|
|||||||
builder.RegisterType<BIHomeService>().As<IBIHomeService>().InstancePerLifetimeScope();
|
builder.RegisterType<BIHomeService>().As<IBIHomeService>().InstancePerLifetimeScope();
|
||||||
builder.RegisterType<FMNoticeService>().As<IFMNoticeService>().InstancePerLifetimeScope();
|
builder.RegisterType<FMNoticeService>().As<IFMNoticeService>().InstancePerLifetimeScope();
|
||||||
builder.RegisterType<SENewUserService>().As<ISENewUserService>().InstancePerLifetimeScope();
|
builder.RegisterType<SENewUserService>().As<ISENewUserService>().InstancePerLifetimeScope();
|
||||||
builder.RegisterType<OPTenantDBConnService>().As<IOPTenantDBConnService>().InstancePerLifetimeScope();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -3,7 +3,6 @@ using Microsoft.AspNetCore.Http;
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Data;
|
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
@ -1199,38 +1198,6 @@ namespace APT.Utility
|
|||||||
}
|
}
|
||||||
return age;
|
return age;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// DataTable 转 List
|
|
||||||
/// </summary>
|
|
||||||
/// <typeparam name="T"></typeparam>
|
|
||||||
/// <param name="dt"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
public static List<T> TableToList<T>(DataTable dt) where T : new()
|
|
||||||
{
|
|
||||||
List<T> ts = new List<T>();
|
|
||||||
Type type = typeof(T);
|
|
||||||
string tempName = "";
|
|
||||||
|
|
||||||
foreach (DataRow dr in dt.Rows)
|
|
||||||
{
|
|
||||||
T t = new T();
|
|
||||||
PropertyInfo[] propertys = t.GetType().GetProperties();
|
|
||||||
foreach (PropertyInfo pi in propertys)
|
|
||||||
{
|
|
||||||
tempName = pi.Name;
|
|
||||||
if (dt.Columns.Contains(tempName))
|
|
||||||
{
|
|
||||||
if (!pi.CanWrite) continue;
|
|
||||||
object value = dr[tempName];
|
|
||||||
if (value != DBNull.Value)
|
|
||||||
pi.SetValue(t, value, null);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
ts.Add(t);
|
|
||||||
}
|
|
||||||
return ts;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
public class BitAnd
|
public class BitAnd
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user