DALFactory/User.cs
(完整代码) 911Busing System;
using System.Reflection;
using ElfinNet.IDAL;
namespace ElfinNet.DALFactory
{
/// <summary>
/// DAL Factory Layer For dbo.User.
/// </summary>
public class User
{
private static readonly string path = System.Configuration.ConfigurationSettings.AppSettings["DAL"];
private static object CreateObject(string path,string CacheKey)
{
object objType = DataCache.GetCache(CacheKey);
if (objType == null)
{
try
{
objType = Assembly.Load(path).CreateInstance(CacheKey);
DataCache.SetCache(CacheKey, objType);
}
catch{}
}
return objType;
}
public static IUser Create()
{
//return (IUser)Assembly.Load(path).CreateInstance(path+".User");
string CacheKey = path+".User";
object objType=CreateObject(path,CacheKey);
return (IUser)objType;
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。