This commit is contained in:
454313500@qq.com
2021-03-20 21:56:15 +08:00
parent 2e5b991db0
commit 367f8f8830
16 changed files with 240 additions and 50 deletions

View File

@@ -15,7 +15,7 @@ namespace CC.Yi.DALFactory
IstudentDal Data = CallContext.GetData("studentDal") as IstudentDal;
if (Data == null)
{
Data = new studentDal(DbSessionFactory.GetCurrentDbSession().GetDbContent());
Data = new studentDal();
CallContext.SetData("studentDal", Data);
}
return Data;

View File

@@ -32,7 +32,7 @@ namespace CC.Yi.DALFactory
I<#=k #>Dal Data = CallContext.GetData("<#=k #>Dal") as I<#=k #>Dal;
if (Data == null)
{
Data = new <#=k #>Dal(DbSessionFactory.GetCurrentDbSession().GetDbContent());
Data = new <#=k #>Dal();
CallContext.SetData("<#=k #>Dal", Data);
}
return Data;