示例#1
0
        static A0DbMdl()
        {
            try
            {
                _asc = JsonIsoFileSerializer.Load <AzureSqlCredentials>();

#if StillInitializing
                if (_asc?.Usr == _rgn)
                {
                    return;
                }
                JsonIsoFileSerializer.Save <AzureSqlCredentials>(new AzureSqlCredentials {
                    Key = _key, Usr = _rgn
                });
                _asc = JsonIsoFileSerializer.Load <AzureSqlCredentials>();
#endif
            }
            catch (Exception ex) { ex.Log(); }
        }