private void InitSessionObjects() { query = (Korzh.EasyQuery.Db.DbQuery)Session[querySessionName]; if (query == null) InitQuery(); //string path = AppDomain.CurrentDomain.BaseDirectory; //path += "data\\nwind1.xml"; }
private void InitQuery() { Korzh.EasyQuery.Db.DbModel model = new Korzh.EasyQuery.Db.DbModel(); model.UseResourcesForOperators = true; string path = System.IO.Path.Combine(baseDataPath, "NWind.xml"); model.LoadFromFile(path); query = new Korzh.EasyQuery.Db.DbQuery(); //query.Formats.EOL = Korzh.EasyQuery.EOLSymbol.None; query.Model = model; //query.Formats.AlphaAlias = true; query.Formats.SetDefaultFormats(FormatType.MsAccess); Session[querySessionName] = query; }