public TaskDao(DGContext dGContext) { _context = dGContext; if (CoreGlobal.NodeSetting.DbType.Equals("Sqlite")) { PAGESUFFIX = "LIMIT @PageSize OFFSET (@PageIndex-1)*@PageSize"; NOLOCK = ""; } }
public QuartzDao() { _context = new DGContext(); if (CoreGlobal.NodeSetting.DbType.Equals("Sqlite")) { //PAGESUFFIX = "LIMIT @PageSize OFFSET (@PageIndex-1)*@PageSize"; NOLOCK = ""; DGContext.Init(SQLiteFactory.Instance, CoreGlobal.NodeSetting.ConnStr); } else { DGContext.Init(SqlClientFactory.Instance, CoreGlobal.NodeSetting.ConnStr); } }