Files
Yi.Framework/CC.Yi.DALFactory/T4StaticDalFactory.cs
454313500@qq.com 367f8f8830 v1.0.1
2021-03-20 21:56:15 +08:00

25 lines
584 B
C#

using CC.Yi.DAL;
using CC.Yi.IDAL;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Text;
using System.Threading;
namespace CC.Yi.DALFactory
{
public partial class StaticDalFactory
{
public static IstudentDal GetstudentDal()
{
IstudentDal Data = CallContext.GetData("studentDal") as IstudentDal;
if (Data == null)
{
Data = new studentDal();
CallContext.SetData("studentDal", Data);
}
return Data;
}
}
}