Exemplo n.º 1
0
            public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
            {
                DBRuntimePropertySettings db = context.Instance as DBRuntimePropertySettings;

                Array.Sort(db.PragmaList);
                return(new StandardValuesCollection(db.PragmaList));
            }
Exemplo n.º 2
0
        protected void LoadRuntimeProperties()
        {
            dbRT = new DBRuntimePropertySettings();
            string          sql;
            SQLiteErrorCode returnCode;
            DataTable       dt;

            foreach (string option in pragmaList)
            {
                sql = string.Format("Pragma {0}", option);
                dt  = DataAccess.ExecuteDataTable(DatabaseLocation, sql, out returnCode);
                if (returnCode == SQLiteErrorCode.Ok)
                {
                    InitRuntimeProperty(option, dt);
                }
            }
        }