public T NewDao <T>(string unityname) { if (this is AbstractController) { if ((this as AbstractController).LoginUserInfo != null && _oleDb != null) { _oleDb.WorkId = (this as AbstractController).LoginUserInfo.WorkId; } } T t = FactoryModel.GetObject <T>(_oleDb, _container, _cache, _pluginName, unityname); return(t); }
public T NewDao <T>() { if (this is AbstractController) { if (CustomWorkId > 0) { _oleDb.WorkId = CustomWorkId; } else if ((this as AbstractController).LoginUserInfo != null && _oleDb != null) { _oleDb.WorkId = (this as AbstractController).LoginUserInfo.WorkId; } } T t = FactoryModel.GetObject <T>(_oleDb, _container, _cache, _pluginName, null); return(t); }
public T NewDao <T>(string unityname) { T t = FactoryModel.GetObject <T>(_oleDb, _container, _cache, _pluginName, unityname); return(t); }
public T NewDao <T>() { T t = FactoryModel.GetObject <T>(_oleDb, _container, _cache, _pluginName, null); return(t); }