v1.0.0
This commit is contained in:
25
CC.Yi.DALFactory/T4StaticDalFactory.cs
Normal file
25
CC.Yi.DALFactory/T4StaticDalFactory.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
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(DbSessionFactory.GetCurrentDbSession().GetDbContent());
|
||||
CallContext.SetData("studentDal", Data);
|
||||
}
|
||||
return Data;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user