v1.0.1
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user