/// <summary> /// 用户登录初始化数据库及策略信息 /// </summary> private void Init() { try { processor = new DeviceProcessor(); if (!processor.OnCreated()) { //初始化用户的状态及策略信息 //Common.Policy = processor.QueryOne<Policy>("SELECT * FROM policy", delegate() { return null; }); } } catch (Exception exc) {} }