BF2Statistics.Database.StatsDatabase.GetTablesVersion C# (CSharp) Метод

GetTablesVersion() защищенный Метод

Fetches the current tables version
We have this in a seperate method because the table migration fetches the the version everytime an update is applied
protected GetTablesVersion ( ) : void
Результат void
        protected void GetTablesVersion()
        {
            // Try and get database version
            try
            {
                string ver = base.ExecuteScalar("SELECT dbver FROM _version LIMIT 1").ToString();
                Version = Version.Parse(ver);
            }
            catch
            {
                // Table doesnt contain a _version table, then we arent installed
                Version = new Version(0, 0);
                //throw;
            }
        }